[Openais] "free (ld_library_path)" in ld_library_path_build (void) (lcr_ifact.c) looks wrong

Jeff jeff3140 at gmail.com
Mon Apr 24 09:08:00 PDT 2006


I found that defining LD_LIBRARY_PATH before executing aisexec
leads to a core dump unless I remove the free() at line 204 in
trunk\lcr\lcr_ifact.c (subroutine ld_library_path_build()).

ld_library_path is returned from getenv() as a pointer to the
value contained in LD_LIBRARY_PATH. AFAIK this is not something
pass to free() when you're done with it.




More information about the Openais mailing list