[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-bugs
Subject:    kern/138379: Memory leak in output_listing() in file
From:       Patroklos Argyroudis <argp () census-labs ! com>
Date:       2009-08-31 10:06:01
Message-ID: 200908311006.n7VA61Ep052387 () www ! freebsd ! org
[Download RAW message or body]


>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:
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic