svn commit: r297827 - head/cddl/contrib/opensolaris/lib/libdtrace/common
Mark Johnston
markj at FreeBSD.org
Mon Apr 11 17:57:55 UTC 2016
Author: markj
Date: Mon Apr 11 17:57:54 2016
New Revision: 297827
URL: https://svnweb.freebsd.org/changeset/base/297827
Log:
libdtrace: Add a missing unlock to an error handler.
Submitted by: Jihyun Yu <yjh0502 at gmail.com>
MFC after: 3 days
Modified:
head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c
Modified: head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c
==============================================================================
--- head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c Mon Apr 11 17:24:26 2016 (r297826)
+++ head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c Mon Apr 11 17:57:54 2016 (r297827)
@@ -711,6 +711,7 @@ dt_module_load_proc(dtrace_hdl_t *dtp, d
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));
}
More information about the svn-src-head
mailing list