Move free()s at the end om main() to the proper destructor functions.
[tinc] / src / mingw / device.c
index 5494796..b13cb56 100644 (file)
@@ -313,6 +313,9 @@ void close_device(void)
        cp();
 
        CloseHandle(device_handle);
+
+       free(device);
+       free(iface);
 }
 
 bool read_packet(vpn_packet_t *packet)