Move free()s at the end om main() to the proper destructor functions.
[tinc] / src / uml_socket / device.c
index f81c88f..92ec6c3 100644 (file)
@@ -171,6 +171,9 @@ void close_device(void)
                close(write_fd);
 
        unlink(device);
+
+       free(device);
+       if(iface) free(iface);
 }
 
 bool read_packet(vpn_packet_t *packet)