Fix memory leak in LIST command.
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 1 Oct 2010 18:17:06 +0000 (20:17 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 1 Oct 2010 18:17:06 +0000 (20:17 +0200)
src/language/data-io/list.q

index 60f51b523b0c0250abbe4ae43753880be464ff4b..738b667183523a210d6530b74ef4f15ea2b598e8 100644 (file)
@@ -178,6 +178,7 @@ cmd_list (struct lexer *lexer, struct dataset *ds)
   ok = proc_commit (ds) && ok;
 
   subcase_destroy (&sc);
+  free (cmd.v_variables);
 
   return ok ? CMD_SUCCESS : CMD_CASCADING_FAILURE;
 }