Delete all calls to free, one seems to be going wrong on glibc