diff options
author | Roy Marples <roy@marples.name> | 2007-08-09 14:33:20 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-08-09 14:33:20 +0000 |
commit | 0084bc41ef5db968cac0f64ae9d0b31dc7621818 (patch) | |
tree | da0ca3238b1d548211cef40c073f897ce3c3bcc4 /src/rc-plugin.c | |
parent | 9072ce748ff67e74756adf6883dfb4b12894d9b8 (diff) |
Don't link to rt anymore as it makes dlopen leak - we now use nanosleeps to achieve the same goal (a loop + timeout). No longer put / at the end of directories, instead prefix like so RC_LIBDIR "/foo" to ensure more robust code.
Diffstat (limited to 'src/rc-plugin.c')
-rw-r--r-- | src/rc-plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc-plugin.c b/src/rc-plugin.c index d8db975a..1103e469 100644 --- a/src/rc-plugin.c +++ b/src/rc-plugin.c @@ -8,6 +8,7 @@ #include <dlfcn.h> #include <errno.h> #include <fcntl.h> +#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -69,9 +70,9 @@ void rc_plugin_load (void) int (*fptr) (rc_hook_t, const char *); int len; + free (p); if (! h) { eerror ("dlopen: %s", dlerror ()); - free (p); continue; } @@ -99,7 +100,6 @@ void rc_plugin_load (void) } free (func); - free (p); } rc_strlist_free (files); |