]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Fix memory leak
authorKamil Rytarowski <n54@gmx.com>
Sat, 11 May 2013 12:54:38 +0000 (14:54 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 28 May 2013 12:36:37 +0000 (14:36 +0200)
install/dracut-install.c

index c8328b06bb4ad62d8009e7eb48304d0937d99eef..a1c64619d7e9a759e78c9a0dd886938f9b3d57fc 100644 (file)
@@ -258,7 +258,7 @@ static int resolve_deps(const char *src)
 {
         int ret = 0;
 
-        char *buf = malloc(LINE_MAX);
+        _cleanup_free_ char *buf = malloc(LINE_MAX);
         size_t linesize = LINE_MAX;
         _cleanup_pclose_ FILE *fptr = NULL;
         _cleanup_free_ char *cmd = NULL;