Added free_variable and free_object to free variables and objects
that we may reuse. Solved the segfault : I was freeing sort of a
static object !
New function to take care about freeing error.