Fixes up some mem issues in decompress