diff options
| author | Mistivia <i@mistivia.com> | 2025-06-06 12:58:14 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-06-06 12:58:14 +0800 |
| commit | 1fad3a10fe4743d69342de294cc65bfe66e32bc9 (patch) | |
| tree | d91be066e44fe7af1eeece0f1b081463bc64dfc7 /tests/test_pque.c | |
| parent | 4779050053cb5f73b54ff936c6393e82ffe5605c (diff) | |
fix leak and hashtable bug
Diffstat (limited to 'tests/test_pque.c')
| -rw-r--r-- | tests/test_pque.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_pque.c b/tests/test_pque.c index 01e6e1c..a6565bd 100644 --- a/tests/test_pque.c +++ b/tests/test_pque.c @@ -35,6 +35,7 @@ int main() { int *top = priority_queue_top(&pq); assert(*top == expected[i]); } + free(pq.buf); printf("[PASS] pque\n"); return 0; } |
