Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2013 05:56:59 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r249576 - stable/8/sys/dev/sound/pci/hda
Message-ID:  <201304170556.r3H5ux7V069683@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304170556.r3H5ux7V069683>