Fixed realloc, found location of bug, see desc

Weird bug having to do with setting the flags to 0 affecting the
contents of slug_mem_t->file to NULL.