Fix memory leak in format-guesser-test.c
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 28 Jul 2012 07:52:46 +0000 (09:52 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 28 Jul 2012 07:52:46 +0000 (09:52 +0200)
src/language/tests/format-guesser-test.c

index cd7ca52475591aed781542582ef6de17c55aa3fa..0900ebd817d75991ee61fe168fa5d4bb19e7e778 100644 (file)
@@ -52,6 +52,7 @@ cmd_debug_format_guesser (struct lexer *lexer, struct dataset *ds UNUSED)
     }
   msg_enable ();
   putc ('\n', stderr);
+  fmt_guesser_destroy (g);
 
   return CMD_SUCCESS;
 }