Adds some memory free funcs