Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sysmon don't forget to free the dictionary.



details:   https://anonhg.NetBSD.org/src/rev/80445e2eda51
branches:  trunk
changeset: 337159:80445e2eda51
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Apr 04 15:29:59 2015 +0000

description:
don't forget to free the dictionary.

diffstat:

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

diffs (27 lines):

diff -r b06b82822d9d -r 80445e2eda51 sys/dev/sysmon/sysmon_power.c
--- a/sys/dev/sysmon/sysmon_power.c     Sat Apr 04 15:25:16 2015 +0000
+++ b/sys/dev/sysmon/sysmon_power.c     Sat Apr 04 15:29:59 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sysmon_power.c,v 1.50 2015/04/04 15:25:16 riastradh Exp $      */
+/*     $NetBSD: sysmon_power.c,v 1.51 2015/04/04 15:29:59 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.50 2015/04/04 15:25:16 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sysmon_power.c,v 1.51 2015/04/04 15:29:59 christos Exp $");
 
 #include "opt_compat_netbsd.h"
 #include <sys/param.h>
@@ -800,6 +800,8 @@
 
                if (sysmon_power_daemon_task(ped, pes, event) == 0)
                        return;
+               /* We failed */
+               prop_object_release(ped->dict);
                kmem_free(ped, sizeof(*ped));
        }
 



Home | Main Index | Thread Index | Old Index