Nathan Hjelm
6b14e47237
dl/dlopen: fix memory leak
...
Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
2015-09-23 08:56:56 -06:00
Jeff Squyres
8fef4e865f
dl dlopen: fix use-after-free
...
Re-structure the loop looking for duplicates a little so that we only
have a single free of the string that happens regardless of whether we
found a duplicate or not.
This was Coverity CID 1288090
2015-03-10 07:43:20 -07:00
Jeff Squyres
3efb5f56ae
dl dlopen: ensure dirs is not NULL
...
opal_argv_split() may have returned NULL.
This was Coverity CID 1288088
2015-03-10 07:43:20 -07:00
Jeff Squyres
86968dcdda
dl dlopen: fix resource leak
...
closedir() was one block higher than it should have been.
This was Coverity CID 1288087.
2015-03-10 07:43:20 -07:00
Jeff Squyres
546ad3f060
dl dlopen: free resources upon error
...
Ensure to take the right path out upon errors (that will free any
pending resources).
This was Coverity CID 1288086
2015-03-10 07:43:19 -07:00
Jeff Squyres
7d340c0c26
dlopen: simple dl component based on POSIX dlopen
...
Works on systems with dlopen (e.g., Linux and OS X). It requires
dlfcn.h and libdl, which many systems have installed by default.
2015-03-09 08:16:55 -07:00