Module Name:    src
Committed By:   christos
Date:           Sat Apr  4 15:31:17 UTC 2015

Modified Files:
        src/sys/dev/sysmon: sysmon_power.c

Log Message:
another missing free dict.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/dev/sysmon/sysmon_power.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/sysmon/sysmon_power.c
diff -u src/sys/dev/sysmon/sysmon_power.c:1.51 src/sys/dev/sysmon/sysmon_power.c:1.52
--- src/sys/dev/sysmon/sysmon_power.c:1.51	Sat Apr  4 11:29:59 2015
+++ src/sys/dev/sysmon/sysmon_power.c	Sat Apr  4 11:31:17 2015
@@ -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 @@ sysmon_pswitch_event(struct sysmon_pswit
 
 		if (sysmon_power_daemon_task(ped, smpsw, event) == 0)
 			return;
+		/* We failed */
+		prop_object_release(ped->dict);
 		kmem_free(ped, sizeof(*ped));
 	}
 	

Reply via email to