From: John Darrington Date: Sun, 31 Jul 2016 13:47:06 +0000 (+0200) Subject: Fix memory leak in test program X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a9efca55e665b6d08047169fd8ae661c20bedeb;p=pspp Fix memory leak in test program --- diff --git a/tests/data/sack.c b/tests/data/sack.c index 006d73f1c9..b9a09b3ffd 100644 --- a/tests/data/sack.c +++ b/tests/data/sack.c @@ -705,6 +705,7 @@ main (int argc, char **argv) fclose (input); fwrite (output.data, output.size, 1, stdout); + free (output.data); return 0; }