Plug memleak in macro doFoo()
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 29 Apr 2008 14:04:08 +0000 (17:04 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 29 Apr 2008 14:39:02 +0000 (17:39 +0300)
rpmio/macro.c

index 8b3ba59..b8889ed 100644 (file)
@@ -1008,6 +1008,7 @@ doFoo(MacroBuf mb, int negate, const char * f, size_t fn,
     if (b) {
        (void) expandT(mb, b, strlen(b));
     }
+    free(buf);
 }
 
 /**