// that there's no trailing garbage.
assert(strm->avail_in == 0);
//assert(action == LZMA_FINISH);
+ lzma_end(strm);
return bytes;
}
+ lzma_end(strm);
const char *msg;
switch (ret) {
case LZMA_MEM_ERROR:
return conf->errabort;
}
+#if 0
+ int64_t used, high;
+ used = sqlite3_memory_used()/1024/1024;
+ high = sqlite3_memory_highwater(0)/1024/1024;
+ fprintf(stderr, "memory = %ld MB / %ld MB\n", used, high);
+#endif
if (conf->verbose && !conf->dryrun) {
fprintf(stderr, "%s '%c' %s\n", nitem.opstr, nitem.ftype,
nitem.dest);