Skip to content

Commit

Permalink
Merge pull request xbmc#6240 from tobbi/coverity_1194431
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins4kodi committed Jan 22, 2015
2 parents 0aac4fd + 3361d8f commit 5ac8631
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/timidity/timidity/timidity.c
Original file line number Diff line number Diff line change
Expand Up @@ -974,8 +974,14 @@ static int set_gus_patchconf(char *name, int line,
{
int err;
if((err = set_gus_patchconf_opts(name, line, opts[j], tone)) != 0)
{
#ifdef SET_GUS_PATCHCONF_COMMENT
if(old_name != NULL)
free(old_name);
#endif
return err;
}
}
#ifdef SET_GUS_PATCHCONF_COMMENT
if(tone->comment == NULL ||
(old_name != NULL && strcmp(old_name,tone->comment) == 0))
Expand Down

0 comments on commit 5ac8631

Please sign in to comment.