]> git.meshlink.io Git - meshlink/commitdiff
Free the meshlink_handle_t in meshlink_close().
authorGuus Sliepen <guus@meshlink.io>
Tue, 10 Jun 2014 12:07:17 +0000 (14:07 +0200)
committerGuus Sliepen <guus@meshlink.io>
Tue, 10 Jun 2014 12:07:17 +0000 (14:07 +0200)
src/meshlink.c

index 7ea3e440b0f941d773c06eba53a267b0199b7508..e5982721d533aadd2cafb8e775f6dcb7b1555916 100644 (file)
@@ -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