[dm-devel] [PATCH 4/5] Match FREE and MALLOC/STRDUP/REALLOC
lixiaokeng
lixiaokeng at huawei.com
Thu Nov 18 02:46:05 UTC 2021
On 2021/11/18 8:47, Benjamin Marzinski wrote:
> On Tue, Nov 16, 2021 at 10:00:53PM +0800, lixiaokeng wrote:
>> In _DEBUG_ mode, MALLOC/STRDUP/REALLOC and FREE will record
>> the memory usage. Match them.
>
> This looks fine, but personally, I'd rather just have all the DEBUG
> memory code removed. If people want to check memory usage, there's
> always valgrind.
>
> -Ben
>
>>
If MALLOC/STRDUP/REALLOC and FREE is unnecessary, I'll remove this patch
in this series and make a patch remove them latter. What is Martin's
opinion?
Regards
Lixiaokeng
More information about the dm-devel
mailing list