diff options
author | Tobias Markus <tobbi@mozilla-uk.org> | 2015-02-09 18:35:45 +0100 |
---|---|---|
committer | Tobias Markus <tobbi@mozilla-uk.org> | 2015-02-09 18:43:51 +0100 |
commit | 196a5280e9623764198cc8e36cc89bdfded60083 (patch) | |
tree | e71ac75bf30cb11ca9246689cac83d93da42a8d2 /lib/timidity | |
parent | 5d18273ecc6ef00a6d52c4ed9e654758b6e3afdc (diff) |
[coverity] Fix for #1194431
Diffstat (limited to 'lib/timidity')
-rw-r--r-- | lib/timidity/timidity/timidity.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/timidity/timidity/timidity.c b/lib/timidity/timidity/timidity.c index e5383138f2..23eb6e7138 100644 --- a/lib/timidity/timidity/timidity.c +++ b/lib/timidity/timidity/timidity.c @@ -922,6 +922,10 @@ static int set_gus_patchconf(char *name, int line, { ctl->cmsg(CMSG_ERROR, VERB_NORMAL, "%s: line %d: Syntax error", name, line); +#ifdef SET_GUS_PATCHCONF_COMMENT + if(old_name != NULL) + free(old_name); +#endif return 1; } tone->name = safe_strdup(opts[0]); |