Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sysmon another missing free dict.



details:   https://anonhg.NetBSD.org/src/rev/5076699fa68a
branches:  trunk
changeset: 337160:5076699fa68a
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Apr 04 15:31:17 2015 +0000

description:
another missing free dict.

diffstat:

 sys/dev/sysmon/sysmon_power.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 80445e2eda51 -r 5076699fa68a sys/dev/sysmon/sysmon_power.c
--- a/sys/dev/sysmon/sysmon_power.c     Sat Apr 04 15:29:59 2015 +0000
+++ b/sys/dev/sysmon/sysmon_power.c     Sat Apr 04 15:31:17 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysmon_power.c,v 1.51 2015/04/04 15:29:59 christos Exp $       */
+/*     $NetBSD: sysmon_power.c,v 1.52 2015/04/04 15:31:17 christos Exp $       */
 
 /*-
  * Copyright (c) 2007 Juan Romero Pardines.
@@ -69,7 +69,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sysmon_power.c,v 1.51 2015/04/04 15:29:59 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_power.c,v 1.52 2015/04/04 15:31:17 christos Exp $");
 
 #include "opt_compat_netbsd.h"
 #include <sys/param.h>
@@ -957,6 +957,8 @@
 
                if (sysmon_power_daemon_task(ped, smpsw, event) == 0)
                        return;
+               /* We failed */
+               prop_object_release(ped->dict);
                kmem_free(ped, sizeof(*ped));
        }
        



Home | Main Index | Thread Index | Old Index