Use g_realloc instead of realloc in lib/processor.c

Since g_malloc is used for allocation, the application is terminated if a call to allocate memory fails. Therefore the typical realloc error that existed, which will overwrite the pointer with NULL without freeing the previous allocated memory can be replaced by a simple call to g_realloc.