diff --git a/src/plugin.c b/src/plugin.c
index 8dfb2c28bfdad9d866fede8eae6e645fb192e4d0..97352c4778d28f88c796101d5be082bcef0bbb48 100644 (file)
--- a/src/plugin.c
+++ b/src/plugin.c
while (42)
{
- callback_func_t *cf;
+ read_func_t *rf;
- cf = c_heap_get_root (read_heap);
- if (cf == NULL)
+ rf = c_heap_get_root (read_heap);
+ if (rf == NULL)
break;
-
- destroy_callback (cf);
+ sfree (rf->rf_name);
+ destroy_callback ((callback_func_t *) rf);
}
c_heap_destroy (read_heap);
return_status = -1;
}
+ sfree (rf->rf_name);
destroy_callback ((void *) rf);
}