Module Name: src Committed By: snj Date: Sun Jul 5 20:37:01 UTC 2015
Modified Files: src/sys/dev/ic [netbsd-7]: ac97.c Log Message: Pull up following revision(s) (requested by maxv in ticket #858): sys/dev/ic/ac97.c: revision 1.96 fix memory leak, found by Brainy. XXX: is there anything else that we need to cleanup at this point? To generate a diff of this commit: cvs rdiff -u -r1.95 -r1.95.12.1 src/sys/dev/ic/ac97.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ic/ac97.c diff -u src/sys/dev/ic/ac97.c:1.95 src/sys/dev/ic/ac97.c:1.95.12.1 --- src/sys/dev/ic/ac97.c:1.95 Sat Oct 27 17:18:18 2012 +++ src/sys/dev/ic/ac97.c Sun Jul 5 20:37:01 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: ac97.c,v 1.95 2012/10/27 17:18:18 chs Exp $ */ +/* $NetBSD: ac97.c,v 1.95.12.1 2015/07/05 20:37:01 snj Exp $ */ /* $OpenBSD: ac97.c,v 1.8 2000/07/19 09:01:35 csapuntz Exp $ */ /* @@ -63,7 +63,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ac97.c,v 1.95 2012/10/27 17:18:18 chs Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ac97.c,v 1.95.12.1 2015/07/05 20:37:01 snj Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -1444,6 +1444,7 @@ ac97_attach_type(struct ac97_host_if *ho if (as->ext_mid == 0 || as->ext_mid == 0xffff) { aprint_normal_dev(sc_dev, "no modem codec found\n"); + free(as, M_DEVBUF); return ENXIO; } as->type = AC97_CODEC_TYPE_MODEM;