Date: Mon, 31 Aug 2009 10:06:01 GMT From: Patroklos Argyroudis <argp@census-labs.com> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/138379: Memory leak in output_listing() in file sys/dev/aic7xxx/aicasm/aicasm.c Message-ID: <200908311006.n7VA61Ep052387@www.freebsd.org> Resent-Message-ID: <200908311010.n7VAA2dH008002@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 138379 >Category: kern >Synopsis: Memory leak in output_listing() in file sys/dev/aic7xxx/aicasm/aicasm.c >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 31 10:10:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Patroklos Argyroudis >Release: 8.0-CURRENT >Organization: census, inc >Environment: N/A >Description: There is a memory leak of pointer func_values which is allocated in line 554 but not freed. >How-To-Repeat: N/A >Fix: Patch attached. Patch attached with submission follows: --- ./sys/dev/aic7xxx/aicasm/aicasm.c.orig 2009-08-27 22:00:05.000000000 +0300 +++ ./sys/dev/aic7xxx/aicasm/aicasm.c 2009-08-27 22:48:58.000000000 +0300 @@ -643,6 +643,7 @@ while(fgets(buf, sizeof(buf), ifile) != NULL) fprintf(listfile, " %s", buf); + free(func_values); fclose(ifile); } >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908311006.n7VA61Ep052387>