Author: glebius Date: Mon Jun 24 09:14:38 2013 New Revision: 252146 URL: http://svnweb.freebsd.org/changeset/base/252146
Log: Merge r247910: Plug a memory leak. Reviewed by: mav Sponsored by: Nginx, Inc. Modified: stable/9/sys/dev/sound/pci/hda/hdacc.c Directory Properties: stable/9/sys/ (props changed) stable/9/sys/dev/ (props changed) Modified: stable/9/sys/dev/sound/pci/hda/hdacc.c ============================================================================== --- stable/9/sys/dev/sound/pci/hda/hdacc.c Mon Jun 24 09:00:18 2013 (r252145) +++ stable/9/sys/dev/sound/pci/hda/hdacc.c Mon Jun 24 09:14:38 2013 (r252146) @@ -460,8 +460,12 @@ hdacc_attach(device_t dev) static int hdacc_detach(device_t dev) { + struct hdacc_softc *codec = device_get_softc(dev); + int error; - return (device_delete_children(dev)); + error = device_delete_children(dev); + free(codec->fgs, M_HDACC); + return (error); } static int _______________________________________________ svn-src-stable-9@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9 To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"