Move free()s at the end om main() to the proper destructor functions.

This commit is contained in:
Guus Sliepen 2009-01-09 12:36:06 +01:00
parent 67df7fb7e1
commit a39a9506cd
9 changed files with 47 additions and 18 deletions

View file

@ -140,6 +140,9 @@ void close_device(void) {
cp();
close(device_fd);
free(device);
free(iface);
}
bool read_packet(vpn_packet_t *packet) {