Date: Mon, 30 Apr 2001 22:07:52 -0400 (EDT) From: "GSI Computer Services (Matt Emmerton)" <gsi@skippyii.compar.com> To: <FreeBSD-gnats-submit@freebsd.org> Subject: bin/27001: Memory leak in usr.sbin/arp/arp.c Message-ID: <20010430220719.G4351-100000@skippyii.compar.com>
next in thread | raw e-mail | index | archive | help
>Number: 27001 >Category: bin >Synopsis: repetitive useage of arp will leak memory >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Apr 30 19:10:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Matt Emmerton >Release: FreeBSD 4.3-STABLE i386 >Organization: GSI Computer Services >Environment: gabby.gsicomp.on.ca 4.3-RC FreeBSD 4.3-RC #1: Wed Apr 11 00:54:11 EDT 2001 >Description: In the function search() of arp.c, malloc() is called without a corresponding free() statement. Props to 'alex' (ml-freebsd-net@phobgate.de) for pointing this out. >How-To-Repeat: Use 'arp' many times and notice that memory usage increases. >Fix: --- usr.sbin/arp/arp.c.orig Mon Apr 30 21:42:18 2001 +++ usr.sbin/arp/arp.c Mon Apr 30 21:42:50 2001 @@ -460,6 +460,7 @@ } (*action)(sdl, sin, rtm); } + free(buf); } /* >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010430220719.G4351-100000>