Author: simon Date: 2009-11-07 13:29:35 +0000 (Sat, 07 Nov 2009) New Revision: 1468
Modified: trunk/batman-adv-kernelland/hard-interface.c Log: fix memory leak when there is a problem adding an interface
Modified: trunk/batman-adv-kernelland/hard-interface.c =================================================================== --- trunk/batman-adv-kernelland/hard-interface.c 2009-11-07 13:21:17 UTC (rev 1467) +++ trunk/batman-adv-kernelland/hard-interface.c 2009-11-07 13:29:35 UTC (rev 1468) @@ -400,6 +400,8 @@ return 1;
out: + if (batman_if->packet_buff) + kfree(batman_if->packet_buff); kfree(batman_if); kfree(dev); return -1;