commit 847d8bf7935b059a080dc98d3e940d474df6aca9
parent 472ff2a23d74de49c82b8ff63e736e11ead55226
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 30 Jun 2026 18:38:37 +0200
handle allocation failure gracefully
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main/extractor_plugins.c b/src/main/extractor_plugins.c
@@ -236,8 +236,9 @@ EXTRACTOR_plugin_add (struct EXTRACTOR_PluginList *prev,
plugin->next = prev;
if (NULL == (plugin->short_libname = strdup (library)))
{
+ free (libname);
free (plugin);
- return NULL;
+ return prev;
}
plugin->libname = libname;
plugin->flags = flags;