On Mon, 2013-05-27 at 18:30 +0400, Joel Brobecker wrote: > Clearly lots of errors in the patch I sent. Can you apply the changes > you suggested, recompile to make sure it at least builds, and post > again here. Because there is no testing involved, I'd like more people > to have a chance to review it before it gets checked in. > > Thank you, Note: Separate patch for another function: find_and_open_solib as requested. Attaching a patch and Chengelog entry for the function nto_find_and_open_solib preceding nto_init_solib_absolute_prefix. There I did not see any use of the make_cleanup/do_cleanups functions (assuming open and openp always return). Therefore xfree is used directly. (Maybe line break of the first xsnprintf statement is not correctly placed, what does GCS say here?)