diff options
author | cbdev <cb@cbcdn.com> | 2018-03-16 00:05:27 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2018-03-16 00:05:27 +0100 |
commit | 5df6379df17fd7875e54ef7c5b5d07c5edb95644 (patch) | |
tree | 88c9542a514c65733dd3ae3b1031b25d7e8189fc /config.c | |
parent | 117946a832cc2cb3f8e02d1f4cbc65e3ca3279ef (diff) | |
download | midimonster-5df6379df17fd7875e54ef7c5b5d07c5edb95644.tar.gz midimonster-5df6379df17fd7875e54ef7c5b5d07c5edb95644.tar.bz2 midimonster-5df6379df17fd7875e54ef7c5b5d07c5edb95644.zip |
Fix resource leaks on error
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |