* Fix potential double-free in one error condition.

This commit is contained in:
Justin Maggard 2012-02-13 22:42:08 +00:00
parent cefe05677d
commit 8634fec6ff

View File

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