svn commit: r249576 - stable/8/sys/dev/sound/pci/hda

Alexey Dokuchaev danfe at FreeBSD.org
Wed Apr 17 05:56:59 UTC 2013


Author: danfe (ports committer)
Date: Wed Apr 17 05:56:59 2013
New Revision: 249576
URL: http://svnweb.freebsd.org/changeset/base/249576

Log:
  MFC r247910:
  
    Plug a memory leak.
  
    Reviewed by:	mav
    Sponsored by:	Nginx, Inc.
  
  Approved by:	glebius

Modified:
  stable/8/sys/dev/sound/pci/hda/hdacc.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/dev/   (props changed)
  stable/8/sys/dev/sound/   (props changed)
  stable/8/sys/dev/sound/pci/   (props changed)

Modified: stable/8/sys/dev/sound/pci/hda/hdacc.c
==============================================================================
--- stable/8/sys/dev/sound/pci/hda/hdacc.c	Wed Apr 17 02:40:07 2013	(r249575)
+++ stable/8/sys/dev/sound/pci/hda/hdacc.c	Wed Apr 17 05:56:59 2013	(r249576)
@@ -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


More information about the svn-src-all mailing list