mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
[mpd] Add missing free in channel_outputvolume
This commit is contained in:
parent
989b44c8dc
commit
6b9878490e
@ -3735,6 +3735,7 @@ channel_outputvolume(const char *message)
|
|||||||
ptr = strrchr(tmp, ':');
|
ptr = strrchr(tmp, ':');
|
||||||
if (!ptr)
|
if (!ptr)
|
||||||
{
|
{
|
||||||
|
free(tmp);
|
||||||
DPRINTF(E_LOG, L_MPD, "Failed to parse output id and volume from message '%s' (expected format: \"output-id:volume\"\n", message);
|
DPRINTF(E_LOG, L_MPD, "Failed to parse output id and volume from message '%s' (expected format: \"output-id:volume\"\n", message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -3760,6 +3761,8 @@ channel_outputvolume(const char *message)
|
|||||||
outputvolume_set(shortid, volume, &errmsg);
|
outputvolume_set(shortid, volume, &errmsg);
|
||||||
if (errmsg)
|
if (errmsg)
|
||||||
DPRINTF(E_LOG, L_MPD, "Failed to set output volume from message: '%s' (error='%s')\n", message, errmsg);
|
DPRINTF(E_LOG, L_MPD, "Failed to set output volume from message: '%s' (error='%s')\n", message, errmsg);
|
||||||
|
|
||||||
|
free(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user