Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/ipf/netinet PR/50559: David Binderman: Add ...



details:   https://anonhg.NetBSD.org/src/rev/82ddfcfff796
branches:  trunk
changeset: 812436:82ddfcfff796
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 15 12:30:34 2015 +0000

description:
PR/50559: David Binderman: Add missing free()'s after calls to randomize().

diffstat:

 sys/external/bsd/ipf/netinet/radix_ipf.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 0d91b0d6ab11 -r 82ddfcfff796 sys/external/bsd/ipf/netinet/radix_ipf.c
--- a/sys/external/bsd/ipf/netinet/radix_ipf.c  Tue Dec 15 04:53:55 2015 +0000
+++ b/sys/external/bsd/ipf/netinet/radix_ipf.c  Tue Dec 15 12:30:34 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: radix_ipf.c,v 1.5 2014/03/20 20:43:12 christos Exp $   */
+/*     $NetBSD: radix_ipf.c,v 1.6 2015/12/15 12:30:34 christos Exp $   */
 
 /*
  * Copyright (C) 2012 by Darren Reed.
@@ -1480,6 +1480,8 @@
                add_addr(rnh, i, order[i]);
                checktree(rnh);
        }
+
+       free(order);
 }
 
 
@@ -1497,5 +1499,7 @@
                delete_addr(rnh, i);
                checktree(rnh);
        }
+
+       free(order);
 }
 #endif /* RDX_DEBUG */



Home | Main Index | Thread Index | Old Index