summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorJan Friedel <Jan.Friedel@Sun.COM>2010-05-21 18:27:51 +0200
committerJan Friedel <Jan.Friedel@Sun.COM>2010-05-21 18:27:51 +0200
commitc42520eba4ad2249406ee84492401db194e6104e (patch)
tree56cdfff4aa6107e13748b46e3c848028c0c0a2cf /usr/src
parent9e986f0e5fb5e5ac09af90cd3b63f7836d983f9d (diff)
downloadillumos-joyent-c42520eba4ad2249406ee84492401db194e6104e.tar.gz
6941585 scf_read_propvec() leaks memory
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/lib/libscf/common/midlevel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/src/lib/libscf/common/midlevel.c b/usr/src/lib/libscf/common/midlevel.c
index 72795f9553..e9b8854adf 100644
--- a/usr/src/lib/libscf/common/midlevel.c
+++ b/usr/src/lib/libscf/common/midlevel.c
@@ -20,8 +20,7 @@
*/
/*
- * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
*/
#include "libscf_impl.h"
@@ -2708,6 +2707,8 @@ scferror:
scf_clean_propvec(properties);
out:
+ scf_value_destroy(v);
+ scf_property_destroy(p);
scf_pg_destroy(pg);
scf_snapshot_destroy(snap);
scf_instance_destroy(i);