diff options
author | markj <markj@FreeBSD.org> | 2016-04-11 17:57:54 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2016-04-11 17:57:54 +0000 |
commit | 6cd8ffac11893ddd3a014b90212e09deacd8ab92 (patch) | |
tree | 2a971849e11336053919d87cdd9c6e3b657b31a9 /cddl/contrib/opensolaris/lib/libdtrace/common | |
parent | 9880f25a5f8f1309fa489fee0de5dd9d202bc8ba (diff) | |
download | FreeBSD-src-6cd8ffac11893ddd3a014b90212e09deacd8ab92.zip FreeBSD-src-6cd8ffac11893ddd3a014b90212e09deacd8ab92.tar.gz |
libdtrace: Add a missing unlock to an error handler.
Submitted by: Jihyun Yu <yjh0502@gmail.com>
MFC after: 3 days
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libdtrace/common')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c | 1 |
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 5fe2565..b940894 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)); } |