svn commit: r192889 - in stable/7/sys: . compat/ndis contrib/pf
dev/ath/ath_hal dev/cxgb
Christian Brueffer
brueffer at FreeBSD.org
Wed May 27 11:03:16 UTC 2009
Author: brueffer
Date: Wed May 27 11:03:14 2009
New Revision: 192889
URL: http://svn.freebsd.org/changeset/base/192889
Log:
MFC: r192036
Fix memory leak in an error case.
Modified:
stable/7/sys/ (props changed)
stable/7/sys/compat/ndis/kern_windrv.c
stable/7/sys/contrib/pf/ (props changed)
stable/7/sys/dev/ath/ath_hal/ (props changed)
stable/7/sys/dev/cxgb/ (props changed)
Modified: stable/7/sys/compat/ndis/kern_windrv.c
==============================================================================
--- stable/7/sys/compat/ndis/kern_windrv.c Wed May 27 10:27:14 2009 (r192888)
+++ stable/7/sys/compat/ndis/kern_windrv.c Wed May 27 11:03:14 2009 (r192889)
@@ -527,7 +527,10 @@ windrv_bus_attach(drv, name)
RtlInitAnsiString(&as, name);
if (RtlAnsiStringToUnicodeString(&drv->dro_drivername, &as, TRUE))
+ {
+ free(new, M_DEVBUF);
return(ENOMEM);
+ }
/*
* Set up a fake image pointer to avoid false matches
More information about the svn-src-stable
mailing list