From: John Darrington Date: Sun, 30 Jun 2019 09:17:15 +0000 (+0200) Subject: Apply Dictionary: Fix memory leak. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05e51c89a8d62c221faf3a194a6701252bc7f279;p=pspp Apply Dictionary: Fix memory leak. --- diff --git a/src/language/dictionary/apply-dictionary.c b/src/language/dictionary/apply-dictionary.c index 8a6434a3d7..d09f8a8721 100644 --- a/src/language/dictionary/apply-dictionary.c +++ b/src/language/dictionary/apply-dictionary.c @@ -125,5 +125,7 @@ cmd_apply_dictionary (struct lexer *lexer, struct dataset *ds) dict_set_weight (dataset_dict (ds), new_weight); } + dict_unref (dict); + return CMD_SUCCESS; }