diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/test_kasan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/test_kasan.c b/lib/test_kasan.c index c32f3b0048dc..275ff0b5162e 100644 --- a/lib/test_kasan.c +++ b/lib/test_kasan.c @@ -93,6 +93,7 @@ static noinline void __init kmalloc_oob_krealloc_more(void) if (!ptr1 || !ptr2) { pr_err("Allocation failed\n"); kfree(ptr1); + kfree(ptr2); return; } |