svn commit: r297953 - stable/10/cddl/contrib/opensolaris/lib/libdtrace/common

Mark Johnston markj at FreeBSD.org
Thu Apr 14 04:54:49 UTC 2016


Author: markj
Date: Thu Apr 14 04:54:47 2016
New Revision: 297953
URL: https://svnweb.freebsd.org/changeset/base/297953

Log:
  MFC r297827:
  libdtrace: Add a missing unlock to an error handler.

Modified:
  stable/10/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c
==============================================================================
--- stable/10/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c	Thu Apr 14 04:40:31 2016	(r297952)
+++ stable/10/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c	Thu Apr 14 04:54:47 2016	(r297953)
@@ -694,6 +694,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-stable-10 mailing list