Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/netstat sprinkle free



details:   https://anonhg.NetBSD.org/src/rev/84e58d8079e8
branches:  trunk
changeset: 821048:84e58d8079e8
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 22 04:26:31 2017 +0000

description:
sprinkle free

diffstat:

 usr.bin/netstat/if.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r d544b4bcc09d -r 84e58d8079e8 usr.bin/netstat/if.c
--- a/usr.bin/netstat/if.c      Sat Jan 21 23:37:17 2017 +0000
+++ b/usr.bin/netstat/if.c      Sun Jan 22 04:26:31 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.91 2017/01/11 01:25:05 ozaki-r Exp $  */
+/*     $NetBSD: if.c,v 1.92 2017/01/22 04:26:31 christos Exp $ */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94";
 #else
-__RCSID("$NetBSD: if.c,v 1.91 2017/01/11 01:25:05 ozaki-r Exp $");
+__RCSID("$NetBSD: if.c,v 1.92 2017/01/22 04:26:31 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -269,6 +269,7 @@
                printf("%-*.*s %-5" PRIu64 " ", n, n, name, ifd->ifi_mtu);
                print_addr(ifindex, rti_info[rtax], rti_info, ifd, NULL);
        }
+       free(buf);
 }
 
 union ifaddr_u {
@@ -1126,4 +1127,5 @@
                ip_cur.ift_co = ifd->ifi_collisions;
                ip_cur.ift_dr = ifd->ifi_iqdrops;
        }
+       free(buf);
 }



Home | Main Index | Thread Index | Old Index