Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jun 2013 09:14:38 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r252146 - stable/9/sys/dev/sound/pci/hda
Message-ID:  <201306240914.r5O9Ec08008711@svn.freebsd.org>

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



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