diff options
author | Matthias Kortstiege <mkortstiege@users.noreply.github.com> | 2015-02-14 12:48:17 +0100 |
---|---|---|
committer | Matthias Kortstiege <mkortstiege@users.noreply.github.com> | 2015-02-14 12:48:17 +0100 |
commit | 06a408e07f2c621677b2cac11f90f858835f50e9 (patch) | |
tree | 99be143076727b8a408beccc6e9e3c76fb373ff5 /lib | |
parent | b9470cae17708837ee336e7919f9a978bdac6c62 (diff) | |
parent | 196a5280e9623764198cc8e36cc89bdfded60083 (diff) |
Merge pull request #6381 from tobbi/coverity_1194431
[coverity] Fix for #1194431
Diffstat (limited to 'lib')
-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]); |