diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 78c3c2097787a1be2ea2bd1757a6c6e5554df72c..46d269e3870652104f2f4b2d52d6643a9250b15b 100644 --- a/fs/pstore/platform.c +++ b/fs/pstore/platform.c @@ -497,6 +497,7 @@ void pstore_get_records(int quiet) big_oops_buf_sz); if (unzipped_len > 0) { + kfree(buf); buf = big_oops_buf; size = unzipped_len; compressed = false;