compression memory leak error solved