aboutsummaryrefslogtreecommitdiffhomepage
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/config.c b/config.c
index f03d98a..b81aeaf 100644
--- a/config.c
+++ b/config.c
@@ -43,6 +43,8 @@ static int config_map(char* to_raw, char* from_raw){
int rv = 1;
if(!from || !to){
+ free(from);
+ free(to);
fprintf(stderr, "Failed to allocate memory\n");
return 1;
}