diff options
Diffstat (limited to 'common/userpref.c')
| -rw-r--r-- | common/userpref.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/userpref.c b/common/userpref.c index 664ba25..35192ac 100644 --- a/common/userpref.c +++ b/common/userpref.c | |||
| @@ -267,6 +267,8 @@ static int internal_set_value(const char *config_file, const char *key, plist_t | |||
| 267 | if (plist_get_node_type(value) == PLIST_STRING) { | 267 | if (plist_get_node_type(value) == PLIST_STRING) { |
| 268 | plist_get_string_val(value, &value_string); | 268 | plist_get_string_val(value, &value_string); |
| 269 | debug_info("setting key %s to %s in config_file %s", key, value_string, config_file); | 269 | debug_info("setting key %s to %s in config_file %s", key, value_string, config_file); |
| 270 | if (value_string) | ||
| 271 | free(value_string); | ||
| 270 | } else { | 272 | } else { |
| 271 | debug_info("setting key %s in config_file %s", key, config_file); | 273 | debug_info("setting key %s in config_file %s", key, config_file); |
| 272 | } | 274 | } |
