* Fix potential double-free in one error condition.
This commit is contained in:
parent
cefe05677d
commit
8634fec6ff
@ -1498,7 +1498,6 @@ SearchContentDirectory(struct upnphttp * h, const char * action)
|
|||||||
/* If it's a DLNA client, return an error for bad sort criteria */
|
/* If it's a DLNA client, return an error for bad sort criteria */
|
||||||
if( (args.flags & FLAG_DLNA) && ret < 0 )
|
if( (args.flags & FLAG_DLNA) && ret < 0 )
|
||||||
{
|
{
|
||||||
free(orderBy);
|
|
||||||
SoapError(h, 709, "Unsupported or invalid sort criteria");
|
SoapError(h, 709, "Unsupported or invalid sort criteria");
|
||||||
goto search_error;
|
goto search_error;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user