commit | c98451f9eabb68df3dfabaedc9e5fee81fec2fd7 | [log] [tgz] |
---|---|---|
author | Nikias Bassen <nikias@gmx.li> | Mon Feb 06 18:22:10 2017 +0100 |
committer | Nikias Bassen <nikias@gmx.li> | Mon Feb 06 18:22:10 2017 +0100 |
tree | 110c36fe1b3ce52ec7981b3d8856f875ef83aad6 | |
parent | e17a493d51a69804836528983d24bbc1d75dd9e5 [diff] |
bplist: Plug memory leak in case parsing a dictionary key fails
diff --git a/src/bplist.c b/src/bplist.c index ecc0684..81bd716 100644 --- a/src/bplist.c +++ b/src/bplist.c
@@ -444,6 +444,7 @@ if (plist_get_data(key)->type != PLIST_STRING) { PLIST_BIN_ERR("%s: dict entry %" PRIu64 ": invalid node type for key\n", __func__, j); + plist_free(key); plist_free(node); return NULL; }