diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-07-12 21:22:44 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-07-12 21:22:44 +0200 |
commit | f17357203dea2c4feb7f425a529a6a72536ab53b (patch) | |
tree | d4b36a3654f08afb9791d0cb6da34a15c3c35960 | |
parent | ad19e7fe0adc99d5710eff1ed48d91a7b75a950e (diff) | |
download | libextractor-f17357203dea2c4feb7f425a529a6a72536ab53b.tar.gz libextractor-f17357203dea2c4feb7f425a529a6a72536ab53b.zip |
fix minor memory leak
-rw-r--r-- | src/main/extractor_plugins.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/extractor_plugins.c b/src/main/extractor_plugins.c index 8dc53d2..0fa10d6 100644 --- a/src/main/extractor_plugins.c +++ b/src/main/extractor_plugins.c | |||
@@ -368,6 +368,8 @@ EXTRACTOR_plugin_remove (struct EXTRACTOR_PluginList *prev, | |||
368 | if ( (NULL != pos->shm) && | 368 | if ( (NULL != pos->shm) && |
369 | (0 == EXTRACTOR_IPC_shared_memory_change_rc_ (pos->shm, -1)) ) | 369 | (0 == EXTRACTOR_IPC_shared_memory_change_rc_ (pos->shm, -1)) ) |
370 | EXTRACTOR_IPC_shared_memory_destroy_ (pos->shm); | 370 | EXTRACTOR_IPC_shared_memory_destroy_ (pos->shm); |
371 | if (NULL != pos->short_libname) | ||
372 | free (pos->short_libname); | ||
371 | if (NULL != pos->libname) | 373 | if (NULL != pos->libname) |
372 | free (pos->libname); | 374 | free (pos->libname); |
373 | free (pos->plugin_options); | 375 | free (pos->plugin_options); |