From: Guus Sliepen Date: Tue, 10 Jun 2014 12:07:17 +0000 (+0200) Subject: Free the meshlink_handle_t in meshlink_close(). X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=1191935b499d91859e9ac74919f3ab28ddf62d3e;p=meshlink Free the meshlink_handle_t in meshlink_close(). --- diff --git a/src/meshlink.c b/src/meshlink.c index 7ea3e440..e5982721 100644 --- a/src/meshlink.c +++ b/src/meshlink.c @@ -837,6 +837,8 @@ void meshlink_close(meshlink_handle_t *mesh) { exit_configuration(&mesh->config); event_loop_exit(&mesh->loop); + free(mesh); + #ifdef HAVE_MINGW WSACleanup(); #endif