diff options
| author | liuye <liuye@kylinos.cn> | 2025-01-14 10:38:38 +0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2025-01-25 20:22:45 -0800 |
| commit | 7882d8fc8fe0c2b2a01f09e56edf82df6b3013fd (patch) | |
| tree | 321c250c9156835a7e4aa495c7821f2dc0d6e8bf /lib/netdev-notifier-error-inject.c | |
| parent | 92da98845a93dc408eaf999885f62f276c91754a (diff) | |
selftests/mm/mkdirty: fix memory leak in test_uffdio_copy()
Release memory before exception branch returns to prevent memory leaks
Checking tools/testing/selftests/mm/mkdirty.c ...
tools/testing/selftests/mm/mkdirty.c:283:3: error: Memory leak: src [memleak]
return;
^
Link: https://lkml.kernel.org/r/20250114023838.48589-1-liuye@kylinos.cn
Signed-off-by: liuye <liuye@kylinos.cn>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
