- Don't allocate Table * with new when open_cache uses free() to de-allocate (we cannot use delete() as some Table * values are allocated with my_multi_malloc()). - Remove unused extern declaration. - Fix invalid cast of function pointer to different type. - Cleanup diplicate code.