[dm-devel] [PATCH 1/9] libmultipath: steal the src string pointer in merge_str()

Martin Wilck martin.wilck at suse.com
Tue Apr 12 10:38:29 UTC 2022


On Mon, 2022-04-11 at 20:59 -0500, Benjamin Marzinski wrote:
> Instead of allocating a copy when the original string is going to be
> freed right after the merge, just steal the pointer. Also,
> merge_mpe()
> can't get called with NULL arguments.
> 
> Signed-off-by: Benjamin Marzinski <bmarzins at redhat.com>

Reviewed-by: Martin Wilck <mwilck at suse.com>



More information about the dm-devel mailing list