summaryrefslogtreecommitdiff
path: root/src/core/processors.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/processors.c')
-rw-r--r--src/core/processors.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/processors.c b/src/core/processors.c
index 666ddac..e4a558f 100644
--- a/src/core/processors.c
+++ b/src/core/processors.c
@@ -185,7 +185,10 @@ bool register_processor_type(GType type)
new = find_processor_by_key(key);
- if (new == NULL)
+ if (new != NULL)
+ free(key);
+
+ else
{
_processors_definitions = realloc(_processors_definitions,
++_processors_definitions_count * sizeof(proc_t));