X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fuml_socket%2Fdevice.c;h=92ec6c3353027c3db42e805fab6ac4a40f7a5f8a;hp=f81c88f63923840fb22b052081334fbd5f3c2c88;hb=a39a9506cd041a7092a98498b362eaacfd2f33c3;hpb=67df7fb7e1c9eefe4bbc920fdc68b595ef28abd9 diff --git a/src/uml_socket/device.c b/src/uml_socket/device.c index f81c88f6..92ec6c33 100644 --- a/src/uml_socket/device.c +++ b/src/uml_socket/device.c @@ -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)