diff options
Diffstat (limited to 'src/main/extractor_plugins.c')
-rw-r--r-- | src/main/extractor_plugins.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main/extractor_plugins.c b/src/main/extractor_plugins.c index 2b5f06a..edefc47 100644 --- a/src/main/extractor_plugins.c +++ b/src/main/extractor_plugins.c | |||
@@ -24,6 +24,7 @@ | |||
24 | */ | 24 | */ |
25 | #include "extractor_plugins.h" | 25 | #include "extractor_plugins.h" |
26 | #include "extractor_plugpath.h" | 26 | #include "extractor_plugpath.h" |
27 | #include "extractor_ipc.h" | ||
27 | 28 | ||
28 | 29 | ||
29 | /** | 30 | /** |
@@ -227,7 +228,7 @@ EXTRACTOR_plugin_add (struct EXTRACTOR_PluginList *prev, | |||
227 | for (pos = prev; NULL != pos; pos = pos->next) | 228 | for (pos = prev; NULL != pos; pos = pos->next) |
228 | if (0 == strcmp (pos->short_libname, library)) | 229 | if (0 == strcmp (pos->short_libname, library)) |
229 | return prev; /* no change, library already loaded */ | 230 | return prev; /* no change, library already loaded */ |
230 | if (NULL == (libname = find_plugin (library))) | 231 | if (NULL == (libname = EXTRACTOR_find_plugin_ (library))) |
231 | { | 232 | { |
232 | fprintf (stderr, | 233 | fprintf (stderr, |
233 | "Could not load `%s'\n", | 234 | "Could not load `%s'\n", |
@@ -391,8 +392,8 @@ EXTRACTOR_plugin_remove (struct EXTRACTOR_PluginList * prev, | |||
391 | first = pos->next; | 392 | first = pos->next; |
392 | else | 393 | else |
393 | prev->next = pos->next; | 394 | prev->next = pos->next; |
394 | /* found */ | 395 | if (NULL != pos->channel) |
395 | stop_process (pos); | 396 | EXTRACTOR_IPC_channel_destroy_ (pos->channel); |
396 | free (pos->short_libname); | 397 | free (pos->short_libname); |
397 | free (pos->libname); | 398 | free (pos->libname); |
398 | free (pos->plugin_options); | 399 | free (pos->plugin_options); |