Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/microcode/aic7xxx Free memory when done with it.



details:   https://anonhg.NetBSD.org/src/rev/d2f961ba8ae8
branches:  trunk
changeset: 750357:d2f961ba8ae8
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Dec 27 16:03:49 2009 +0000

description:
Free memory when done with it.
>From Henning Petersen in PR/42522.

diffstat:

 sys/dev/microcode/aic7xxx/aicasm.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 744de16d6d43 -r d2f961ba8ae8 sys/dev/microcode/aic7xxx/aicasm.c
--- a/sys/dev/microcode/aic7xxx/aicasm.c        Sun Dec 27 15:24:55 2009 +0000
+++ b/sys/dev/microcode/aic7xxx/aicasm.c        Sun Dec 27 16:03:49 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aicasm.c,v 1.7 2009/03/18 10:22:40 cegger Exp $        */
+/*     $NetBSD: aicasm.c,v 1.8 2009/12/27 16:03:49 jakllsch Exp $      */
 
 /*
  * Aic7xxx SCSI host adapter firmware asssembler
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: aicasm.c,v 1.7 2009/03/18 10:22:40 cegger Exp $");
+__RCSID("$NetBSD: aicasm.c,v 1.8 2009/12/27 16:03:49 jakllsch Exp $");
 
 #include <sys/types.h>
 #include <sys/mman.h>
@@ -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