Loading...
src/ImageLoader.cpp dyld-43.1 dyld-44.2
--- dyld/dyld-43.1/src/ImageLoader.cpp
+++ dyld/dyld-44.2/src/ImageLoader.cpp
@@ -506,6 +506,7 @@
 					const char* referencedFrom = this->getPath();
 					char buf[strlen(requiredLib.name)+strlen(referencedFrom)+strlen(formatString)+strlen(msg)+2];
 					sprintf(buf, formatString, requiredLib.name, referencedFrom, msg);
+					fLibrariesLoaded = false;
 					throw strdup(buf);  // this is a leak if exception doesn't halt program
 				}
 				// ok if weak library not found