Fix leak in u8-istream-test.c
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 28 Jul 2012 11:13:08 +0000 (13:13 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 28 Jul 2012 11:13:08 +0000 (13:13 +0200)
tests/libpspp/u8-istream-test.c

index ab1b717eeb14440e8a80853b39c0d7205876a071..0a16798b0d9dfd52ccccf261902cea93be98311b 100644 (file)
@@ -89,6 +89,7 @@ cmd_read (int argc, char *argv[])
       else
         break;
     }
+  free (buffer);
 
   if (u8_istream_is_auto (is))
     printf ("Auto mode\n");