Fix two small memory leaks.
[tinc] / src / dummy_device.c
index 4b01072..d1d751b 100644 (file)
@@ -37,6 +37,8 @@ static bool setup_device(void) {
 }
 
 static void close_device(void) {
+       free(device);
+       free(iface);
 }
 
 static bool read_packet(vpn_packet_t *packet) {