Subject: CVS commit: src/sys/dev/sysmon
To: None <source-changes@NetBSD.org>
From: Juan Romero Pardines <xtraeme@netbsd.org>
List: source-changes
Date: 09/01/2007 13:43:10
Module Name:	src
Committed By:	xtraeme
Date:		Sat Sep  1 13:43:10 UTC 2007

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

Log Message:
- Fix a memleak in ENVSYS_SETDICTIONARY if there wasn't any error
  (thanks god for KMEMSTATS).
- sysmon_envsys_register: add all objects in the dictionary without any
  lock, at this point the sme device hasn't been added into the list
  and it's safe.
- Add sysmon_envsys_destroy_plist(prop_array_t) that destroys all objects
  associated with a device and use it on sysmon_envsys_unregister() and
  sysmon_envsys_register() if there's any error.

Thanks to Mindaugas Rasiukevicius (rmind@) for the great comments/ideas.


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

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