Merge pull request #4401 from mugitya03/MLK-1

Release resources before returning
This commit is contained in:
Yann Collet
2025-06-04 12:49:38 -07:00
committed by GitHub
+3 -2
View File
@@ -27,6 +27,7 @@ do { \
} while (0) \
int main(int argc, char *argv[]) {
int retn = 0;
if (argc != 2) {
printf("Usage: externalSequenceProducer <file>\n");
return 1;
@@ -96,12 +97,12 @@ int main(int argc, char *argv[]) {
break;
}
}
return 1;
retn = 1;
}
ZSTD_freeCCtx(zc);
free(src);
free(dst);
free(val);
return 0;
return retn;
}