diff options
| author | 2015-07-31 12:34:22 -0400 | |
|---|---|---|
| committer | 2015-07-31 12:42:08 -0400 | |
| commit | 726db697a22b4eb3de4ce8e2c8697cc16465c73a (patch) | |
| tree | 90bceeb786b7afed00c5c6e2ebaf7d7af1bf10ec /src/conf.c | |
| parent | 90a38cc24794d2807c7e0a3d11f2eaaea76b8ebd (diff) | |
| download | usbmuxd-726db697a22b4eb3de4ce8e2c8697cc16465c73a.tar.gz usbmuxd-726db697a22b4eb3de4ce8e2c8697cc16465c73a.tar.bz2 | |
internal_get_value: fix over-free of node returned by plist_dict_get_item.
Diffstat (limited to 'src/conf.c')
| -rw-r--r-- | src/conf.c | 1 |
1 files changed, 0 insertions, 1 deletions
| @@ -290,7 +290,6 @@ static int internal_get_value(const char* config_file, const char *key, plist_t | |||
| 290 | plist_t n = plist_dict_get_item(config, key); | 290 | plist_t n = plist_dict_get_item(config, key); |
| 291 | if (n) { | 291 | if (n) { |
| 292 | *value = plist_copy(n); | 292 | *value = plist_copy(n); |
| 293 | plist_free(n); | ||
| 294 | n = NULL; | 293 | n = NULL; |
| 295 | } | 294 | } |
| 296 | } | 295 | } |
