aboutsummaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index 2165821..258d167 100644
--- a/src/config.c
+++ b/src/config.c
@@ -68,6 +68,8 @@ configAppend (Config *cfg, const char *key, const char *value)
cfg->entries[cfg->count].value = strdup (value);
if (!cfg->entries[cfg->count].key || !cfg->entries[cfg->count].value)
{
+ free (cfg->entries[cfg->count].key);
+ free (cfg->entries[cfg->count].value);
UA_LOG_ERROR (UA_Log_Stdout, UA_LOGCATEGORY_USERLAND,
"Config: out of memory");
return -1;