Re: Shared libperl.so and build issues
[p5sagit/p5-mst-13.2.git] / ext / DynaLoader / dl_dyld.xs
index 752ac36..45ae10f 100644 (file)
@@ -116,6 +116,7 @@ static char *dlopen(char *path, int mode /* mode is ignored */)
        // NSLinkModule will cause the run to abort on any link error's
        // not very friendly but the error recovery functionality is limited.
        handle = NSLinkModule(ofile, path, TRUE);
+       NSDestroyObjectFileImage(ofile);
     }
 
     return handle;