mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45:56 -05:00
[player] Fix memory leak if opening new source failed
player.c:2032:11: warning: Potential leak of memory pointed to by 'ps'
This commit is contained in:
parent
b7f3e71f7e
commit
f3a495cd37
@ -2037,6 +2037,7 @@ playback_start_item(void *arg, int *retval)
|
||||
if (ret < 0)
|
||||
{
|
||||
playback_abort();
|
||||
source_free(ps);
|
||||
*retval = -1;
|
||||
return COMMAND_END;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user