grub2/0248-util-grub-mkstandalone-fix-memory-leak.patch
Peter Jones 8c6b1ac71e Reconcile with upstream once again.
Also include some minor fixes for gcc 5.1.1

Signed-off-by: Peter Jones <pjones@redhat.com>
2015-07-22 09:46:32 -04:00

26 lines
611 B
Diff

From bd4e20eedfaa3079a2efcb13559e916772365ee1 Mon Sep 17 00:00:00 2001
From: Andrei Borzenkov <arvidjaar@gmail.com>
Date: Mon, 26 Jan 2015 22:20:51 +0300
Subject: [PATCH 248/506] util/grub-mkstandalone: fix memory leak.
Found by: Coverity scan.
---
util/grub-mkstandalone.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/util/grub-mkstandalone.c b/util/grub-mkstandalone.c
index 6017d71..4907d44 100644
--- a/util/grub-mkstandalone.c
+++ b/util/grub-mkstandalone.c
@@ -284,6 +284,7 @@ add_tar_file (const char *from,
grub_util_fd_close (in);
write_pad (size);
+ free (tcn);
}
int
--
2.4.3