Merge of gzip_memory bugfix