>>
>> +if (mpvec)
>> +newmp = mpvec;
>> +else
>> +newmp = vector_alloc();
>> +if (!newmp) {
>> +condlog(0, "can not allocate newmp");
>> +return ret;
>> +}
>> +
>
> It's possible that this patch is based on different code than I am
On Mon, Nov 02, 2020 at 10:41:22AM +0800, lixiaokeng wrote:
> When multipath -F are executed first and multipath -v2 or
> -d are executed later, asan will warn memory leaks. The
> reason is that the mpp allocated in coalesce_paths isn't
> freed. Here we use newmp to store mpp. If mpvec is NULL,
> w
On Mon, 2020-11-02 at 10:41 +0800, lixiaokeng wrote:
> When multipath -F are executed first and multipath -v2 or
> -d are executed later, asan will warn memory leaks. The
> reason is that the mpp allocated in coalesce_paths isn't
> freed. Here we use newmp to store mpp. If mpvec is NULL,
> we free
When multipath -F are executed first and multipath -v2 or
-d are executed later, asan will warn memory leaks. The
reason is that the mpp allocated in coalesce_paths isn't
freed. Here we use newmp to store mpp. If mpvec is NULL,
we free newmp at the end of the func.
Signed-off-by: Lixiaokeng
Signe