SF Bug Tracker: UpnpString leaks in genaSubscribe()

In genaSubscribe() (defined in upnp/src/gena/gena_ctrlpt.c),
ActualSID and EventURL will not be freed.
This commit is contained in:
Marcelo Roberto Jimenez
2012-02-23 16:30:19 -02:00
parent d87c966ec5
commit 2940cbf94a
2 changed files with 11 additions and 3 deletions

View File

@@ -520,9 +520,9 @@ int genaSubscribe(
HandleReadLock();
/* validate handle */
if (GetHandleInfo(client_handle, &handle_info) != HND_CLIENT) {
HandleUnlock();
return GENA_E_BAD_HANDLE;
return_code = GENA_E_BAD_HANDLE;
SubscribeLock();
goto error_handler;
}
HandleUnlock();