Move free()s at the end om main() to the proper destructor functions.
This commit is contained in:
parent
67df7fb7e1
commit
a39a9506cd
9 changed files with 47 additions and 18 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue