mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-15 16:53:18 -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)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
playback_abort();
|
playback_abort();
|
||||||
|
source_free(ps);
|
||||||
*retval = -1;
|
*retval = -1;
|
||||||
return COMMAND_END;
|
return COMMAND_END;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user