Fixed small memory leak.

This commit is contained in:
Jan Vidar Krey 2009-06-26 01:16:07 +02:00
parent 3cf005a08e
commit 1f7f6a43f9

View File

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