aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/lib/libdtrace
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2016-04-11 17:57:54 +0000
committerMark Johnston <markj@FreeBSD.org>2016-04-11 17:57:54 +0000
commitf7d5087af21f187aa1b9be963b2e843f237a53e2 (patch)
tree2a971849e11336053919d87cdd9c6e3b657b31a9 /cddl/contrib/opensolaris/lib/libdtrace
parent3b7175bdc706fa47075b410388eca46640e651aa (diff)
downloadsrc-f7d5087af21f187aa1b9be963b2e843f237a53e2.tar.gz
src-f7d5087af21f187aa1b9be963b2e843f237a53e2.zip
libdtrace: Add a missing unlock to an error handler.
Submitted by: Jihyun Yu <yjh0502@gmail.com> MFC after: 3 days
Notes
Notes: svn path=/head/; revision=297827
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libdtrace')
-rw-r--r--cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c
index 5fe256503f5e..b9408944f8c5 100644
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c
@@ -711,6 +711,7 @@ dt_module_load_proc(dtrace_hdl_t *dtp, dt_module_t *dmp)
arg.dpa_count = 0;
if (Pobject_iter_resolved(p, dt_module_load_proc_count, &arg) != 0) {
dt_dprintf("failed to iterate objects\n");
+ dt_proc_unlock(dtp, p);
dt_proc_release(dtp, p);
return (dt_set_errno(dtp, EDT_CANTLOAD));
}