Add compression and scanner tests; fix chunk_decompress data ownership bug, data_destroy NULL safety, chunk_compress memory leak

This commit is contained in:
2026-07-04 21:25:34 +02:00
parent 38019e7e32
commit 43c0a1395d
8 changed files with 268 additions and 5 deletions
+1
View File
@@ -25,6 +25,7 @@ Data *data_create(void *data, size_t data_size) {
}
void data_destroy(Data *data) {
if (data == NULL) return;
free(data->data);
free(data);
}