NetBSD-Bugs archive

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

kern/42522: Memory leak in sys/dev/microcode/aic7xxx/aicasm.c .



>Number:         42522
>Category:       kern
>Synopsis:       Memory leak in sys/dev/microcode/aic7xxx/aicasm.c .
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 27 08:15:00 +0000 2009
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Memory leak found with cppcheck.
>How-To-Repeat:

>Fix:
diff -u -r1.7 aicasm.c
--- sys/dev/microcode/aic7xxx/aicasm.c  18 Mar 2009 10:22:40 -0000      1.7
+++ sys/dev/microcode/aic7xxx/aicasm.c  27 Dec 2009 07:36:08 -0000
@@ -594,6 +594,7 @@
                        if (isatty(fileno(stdin)) == 0)
                                putchar(input);
                }
+               free(func_values);
                fprintf(stdout, "\nThanks!\n");
        }
 



Home | Main Index | Thread Index | Old Index