g_free call does not set the pointer to NULL after freeing the memory at some places in ilo2_ribcl plugin. This can lead to potential core dumps. Create a wrapper function to g_free which will free the memory and set the pointer to NULL.
Also g_malloc0 initializes the contents to 0 after allocating it. Replace g_malloc to g_malloc0 in ilo2_ribcl plugin.
g_free call does not set the pointer to NULL after freeing the memory at some places in ilo2_ribcl plugin. This can lead to potential core dumps. Create a wrapper function to g_free which will free the memory and set the pointer to NULL.
Also g_malloc0 initializes the contents to 0 after allocating it. Replace g_malloc to g_malloc0 in ilo2_ribcl plugin.
Reported by: openhpi2