Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/ipsec-tools/src/racoon Free strdeupped string af...



details:   https://anonhg.NetBSD.org/src/rev/30bc04a1e14f
branches:  trunk
changeset: 750879:30bc04a1e14f
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sun Jan 17 23:03:01 2010 +0000

description:
Free strdeupped string after using it. Found by cppcheck.

diffstat:

 crypto/dist/ipsec-tools/src/racoon/sainfo.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r b043227f66b5 -r 30bc04a1e14f crypto/dist/ipsec-tools/src/racoon/sainfo.c
--- a/crypto/dist/ipsec-tools/src/racoon/sainfo.c       Sun Jan 17 23:02:48 2010 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/sainfo.c       Sun Jan 17 23:03:01 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sainfo.c,v 1.11 2008/11/06 14:12:28 vanhu Exp $        */
+/*     $NetBSD: sainfo.c,v 1.12 2010/01/17 23:03:01 wiz Exp $  */
 
 /*     $KAME: sainfo.c,v 1.16 2003/06/27 07:32:39 sakane Exp $ */
 
@@ -115,6 +115,7 @@
                 racoon_free(dloc);
                 racoon_free(drmt);
                 racoon_free(dpeer);
+                racoon_free(dclient);
        }
 
        LIST_FOREACH(s, &sitree, chain) {



Home | Main Index | Thread Index | Old Index