Message ID | 20200124011306.7Bu7OgvYd%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | + lib-test_kasanc-fix-memory-leak-in-kmalloc_oob_krealloc_more.patch added to -mm tree | expand |
--- a/lib/test_kasan.c~lib-test_kasanc-fix-memory-leak-in-kmalloc_oob_krealloc_more +++ a/lib/test_kasan.c @@ -158,6 +158,7 @@ static noinline void __init kmalloc_oob_ if (!ptr1 || !ptr2) { pr_err("Allocation failed\n"); kfree(ptr1); + kfree(ptr2); return; }