* Fix a premature free when parsing TiVo commands.

This commit is contained in:
Justin Maggard 2010-07-23 21:40:11 +00:00
parent f254ac452e
commit 19568dd413

View File

@ -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