]> granicus.if.org Git - procps-ng/commitdiff
pwdx: free memory before exit
authorSami Kerola <kerolasa@iki.fi>
Sun, 5 Feb 2012 19:44:39 +0000 (20:44 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sun, 5 Feb 2012 19:44:39 +0000 (20:44 +0100)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
pwdx.c

diff --git a/pwdx.c b/pwdx.c
index 3d8b71f7be233f113e8e446c79f85f719d23ad2a..681397d0c683011f1acc9085678dd50aad6638a5 100644 (file)
--- a/pwdx.c
+++ b/pwdx.c
@@ -129,6 +129,6 @@ int main(int argc, char *argv[])
 
                printf("%s: %s\n", argv[i], s);
        }
-
+       free(pathbuf);
        return retval;
 }