X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fbsd%2Fdevice.c;h=2e8908af3dce5e54baa24e25e303fbe6026b2dfc;hb=261d1eac1c5bbe6c87aa707566f290e611169432;hp=01b7071a00687ed1b77b383f1af64ec9d82104a3;hpb=b069da90d67b49dce041f513a3855b8da3d82f80;p=tinc diff --git a/src/bsd/device.c b/src/bsd/device.c index 01b7071a..2e8908af 100644 --- a/src/bsd/device.c +++ b/src/bsd/device.c @@ -1,7 +1,7 @@ /* device.c -- Interaction BSD tun/tap device Copyright (C) 2001-2005 Ivo Timmermans, - 2001-2008 Guus Sliepen + 2001-2009 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -140,6 +140,9 @@ void close_device(void) { cp(); close(device_fd); + + free(device); + free(iface); } bool read_packet(vpn_packet_t *packet) {