Zhao Lei writes:

> Hi, Byongho Lee
>
>> -----Original Message-----
>> From: linux-btrfs-ow...@vger.kernel.org
>> [mailto:linux-btrfs-ow...@vger.kernel.org] On Behalf Of Byongho Lee
>> Sent: Friday, August 21, 2015 11:10 AM
>> To: linux-btrfs@vger.kernel.org
>> Subject: [PATCH] btrfs-progs: fix memory leaks in error path
>> 
>> This patch includes below fixes in error path:
>> 1. fix memory leaks if realloc() fails
>> 2. add missing call free_history() before return error in scrub_read_file()
>> 
>> Signed-off-by: Byongho Lee <bhlee.ker...@gmail.com>
>> ---
>>  btrfs-list.c |  8 ++++++++
>>  cmds-scrub.c | 18 ++++++++++++++----
>>  qgroup.c     |  8 ++++++++
>
>
> Similar problem in cmds-send.c:
> cmds-send.c:    s->clone_sources = realloc(s->clone_sources,
>

Thank you for feedback.

You're right, I missed that point.
I'll prepare v2 patch.

Regards,
Lee
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to