Fixed small memory leak.
This commit is contained in:
parent
3cf005a08e
commit
1f7f6a43f9
|
@ -543,6 +543,8 @@ void hub_shutdown_service(struct hub_info* hub)
|
||||||
uman_shutdown(hub);
|
uman_shutdown(hub);
|
||||||
hub->status = hub_status_stopped;
|
hub->status = hub_status_stopped;
|
||||||
event_base_free(hub->evbase);
|
event_base_free(hub->evbase);
|
||||||
|
hub_free(hub->sendbuf);
|
||||||
|
hub_free(hub->recvbuf);
|
||||||
hub_free(hub);
|
hub_free(hub);
|
||||||
hub = 0;
|
hub = 0;
|
||||||
g_hub = 0;
|
g_hub = 0;
|
||||||
|
|
Loading…
Reference in New Issue