* Fix a premature free when parsing TiVo commands.
This commit is contained in:
parent
f254ac452e
commit
19568dd413
@ -719,7 +719,6 @@ ProcessTiVoCommand(struct upnphttp * h, const char * orig_path)
|
|||||||
{
|
{
|
||||||
strip_ext(anchorItem);
|
strip_ext(anchorItem);
|
||||||
}
|
}
|
||||||
free(path);
|
|
||||||
|
|
||||||
if( command )
|
if( command )
|
||||||
{
|
{
|
||||||
@ -742,9 +741,11 @@ ProcessTiVoCommand(struct upnphttp * h, const char * orig_path)
|
|||||||
{
|
{
|
||||||
DPRINTF(E_DEBUG, L_GENERAL, "Unhandled command [%s]\n", command);
|
DPRINTF(E_DEBUG, L_GENERAL, "Unhandled command [%s]\n", command);
|
||||||
Send501(h);
|
Send501(h);
|
||||||
|
free(path);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
free(path);
|
||||||
CloseSocket_upnphttp(h);
|
CloseSocket_upnphttp(h);
|
||||||
}
|
}
|
||||||
#endif // TIVO_SUPPORT
|
#endif // TIVO_SUPPORT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user