aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthias Kortstiege <mkortstiege@users.noreply.github.com>2015-02-14 12:48:17 +0100
committerMatthias Kortstiege <mkortstiege@users.noreply.github.com>2015-02-14 12:48:17 +0100
commit06a408e07f2c621677b2cac11f90f858835f50e9 (patch)
tree99be143076727b8a408beccc6e9e3c76fb373ff5 /lib
parentb9470cae17708837ee336e7919f9a978bdac6c62 (diff)
parent196a5280e9623764198cc8e36cc89bdfded60083 (diff)
Merge pull request #6381 from tobbi/coverity_1194431
[coverity] Fix for #1194431
Diffstat (limited to 'lib')
-rw-r--r--lib/timidity/timidity/timidity.c4
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]);