Fixing a sysmem_freeptr on a bad ptr