Apply Dictionary: Fix memory leak.
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 30 Jun 2019 09:17:15 +0000 (11:17 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 30 Jun 2019 09:17:15 +0000 (11:17 +0200)
src/language/dictionary/apply-dictionary.c

index 8a6434a3d77d29cdf4ee14c031bff7315db343c6..d09f8a8721dfa889f4ce9853d4d274877b2e70f4 100644 (file)
@@ -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;
 }