diff options
Diffstat (limited to 'ipa-client')
-rw-r--r-- | ipa-client/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipa-client/config.c b/ipa-client/config.c index f590d10a2..c32946ed6 100644 --- a/ipa-client/config.c +++ b/ipa-client/config.c @@ -91,7 +91,7 @@ get_config_entry(char * in_data, const char *section, const char *key) if (NULL == in_data) return NULL; else - strdup(in_data); + data = strdup(in_data); for (line = strtok_r(data, "\n", &ptr); line != NULL; line = strtok_r(NULL, "\n", &ptr)) { @@ -156,5 +156,6 @@ get_config_entry(char * in_data, const char *section, const char *key) } } } + free(data); return NULL; } |