diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-16 19:35:49 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-02-16 19:35:49 +0000 |
commit | 77a217468507bc598e833bf15b4a1eaf7bbaf284 (patch) | |
tree | 427b0da4bb737fa2b3a3e97504edd01c570c4198 /cfg.c | |
parent | 3e270af17a1918df1d3c3f40fc5bab336bc93c1b (diff) | |
download | rtmux-77a217468507bc598e833bf15b4a1eaf7bbaf284.tar.gz rtmux-77a217468507bc598e833bf15b4a1eaf7bbaf284.tar.bz2 rtmux-77a217468507bc598e833bf15b4a1eaf7bbaf284.zip |
Fix a couple of memory leaks, from Romain Francoise.
Diffstat (limited to 'cfg.c')
-rw-r--r-- | cfg.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -131,8 +131,10 @@ load_cfg(const char *path, struct cmd_ctx *ctxin, struct causelist *causes) buf = copy; while (isspace((u_char)*buf)) buf++; - if (*buf == '\0') + if (*buf == '\0') { + free(copy); continue; + } if (cmd_string_parse(buf, &cmdlist, &cause) != 0) { free(copy); |