Don't check for NULL-pointers before calling free().
[tinc] / src / uml_device.c
index 49f26ff..66de431 100644 (file)
@@ -181,10 +181,7 @@ void close_device(void) {
        unlink(device);
 
        free(device);
        unlink(device);
 
        free(device);
-
-       if(iface) {
-               free(iface);
-       }
+       free(iface);
 }
 
 static bool read_packet(vpn_packet_t *packet) {
 }
 
 static bool read_packet(vpn_packet_t *packet) {