From: Ben Pfaff Date: Wed, 8 Apr 2009 04:26:50 +0000 (-0700) Subject: Fix memory leak in cmd_data_list(). X-Git-Tag: v0.7.3~170 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e93305aff3e79fd7b810d180cb71c080ad6d5b96;p=pspp-builds.git Fix memory leak in cmd_data_list(). --- diff --git a/src/language/data-io/data-list.c b/src/language/data-io/data-list.c index 3b091404..de857488 100644 --- a/src/language/data-io/data-list.c +++ b/src/language/data-io/data-list.c @@ -294,6 +294,7 @@ cmd_data_list (struct lexer *lexer, struct dataset *ds) data_parser_make_active_file (parser, ds, reader, dict); fh_unref (fh); + ds_destroy (&encoding); return CMD_SUCCESS; @@ -302,6 +303,7 @@ cmd_data_list (struct lexer *lexer, struct dataset *ds) if (!in_input_program ()) dict_destroy (dict); fh_unref (fh); + ds_destroy (&encoding); return CMD_CASCADING_FAILURE; }