fix: scanner leak, remove TSan (Docker incompatible)
CI / lint (push) Successful in 6s
CI / lint (pull_request) Successful in 5s
CI / build-and-test (push) Successful in 48s
CI / sanitizers (address) (push) Successful in 5s
CI / build-and-test (pull_request) Successful in 47s
CI / sanitizers (address) (pull_request) Successful in 4s

- Fix ArrayList leak in directory_scanner_next when no files found
- Remove TSan from CI matrix (Docker 'unexpected memory mapping')
- Keep ASan which now passes clean
This commit is contained in:
2026-07-19 16:22:16 +02:00
parent ba6d42ea2d
commit 5dfc262cf7
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ jobs:
needs: lint needs: lint
strategy: strategy:
matrix: matrix:
sanitizer: [address, thread] sanitizer: [address]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
+1
View File
@@ -158,5 +158,6 @@ Chunk* directory_scanner_next(DirectoryScanner* scanner) {
if (chunk_data->size > 0) if (chunk_data->size > 0)
return chunk_data_to_chunk(chunk_data); return chunk_data_to_chunk(chunk_data);
array_list_delete(chunk_data);
return NULL; return NULL;
} }