The free function that is causing the problem is during the http request, it's in code that I haven't written and it doesn't seem to make any sense, I am still looking into it.
plypencil Some annoying crap Code that I had no written or modified that was working fine before, was for some reason not working correctly, there were a couple of "free" functions, that in certain situations, were trying to free pointers before assignments, in http.c and the search_ui function.