Fix leak in render-test 20120803000505/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 2 Aug 2012 18:54:18 +0000 (20:54 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 2 Aug 2012 18:54:18 +0000 (20:54 +0200)
tests/output/render-test.c

index 91fd76c4150ff0a778a0e0010770bd3700189aac..0376e5b49b08ed60ada321424f241ab54fdaeb7a 100644 (file)
@@ -122,7 +122,10 @@ configure_drivers (int width, int length)
   string_map_destroy (&tmp);
 
   if (draw_mode)
+   {
+    string_map_destroy (&options);
     return;
+   }
 
   /* Render to render.txt. */
   string_map_replace (&options, "output-file", "render.txt");