
vpnc at unix-ag
Oct 25, 2009, 4:35 AM
Post #1 of 1
(119 views)
Permalink
|
|
svn commit: vpnc r447 - /branches/vpnc-nortel/config.c
|
|
Author: Antonio Borneo Date: Sun Oct 25 12:35:25 2009 New Revision: 447 Log: Bin Li <libin.charles[at]gmail.com> Fix memory leak When call the asprintf , I failed to notice a matching call to free. Modified: branches/vpnc-nortel/config.c Modified: branches/vpnc-nortel/config.c ============================================================================== --- branches/vpnc-nortel/config.c (original) +++ branches/vpnc-nortel/config.c Sun Oct 25 12:35:25 2009 @@ -833,6 +833,7 @@ opt_nortel_client_id = p->id; break; } + free(s); if (!p->string) { printf("%s: invalid [1] Nortel Client version ID %s\n" " To list valid values, run \"%s --nortel-client id list\"\n", _______________________________________________ vpnc-devel mailing list vpnc-devel[at]unix-ag.uni-kl.de https://lists.unix-ag.uni-kl.de/mailman/listinfo/vpnc-devel http://www.unix-ag.uni-kl.de/~massar/vpnc/
|