projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move free()s at the end om main() to the proper destructor functions.
[oweals/tinc.git]
/
src
/
uml_socket
/
device.c
diff --git
a/src/uml_socket/device.c
b/src/uml_socket/device.c
index f81c88f63923840fb22b052081334fbd5f3c2c88..92ec6c3353027c3db42e805fab6ac4a40f7a5f8a 100644
(file)
--- 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)