diff options
| author | 2026-11-05 10:43:33 +0100 | |
|---|---|---|
| committer | 2026-11-05 11:59:00 +0100 | |
| commit | 3347d52167a36952666856c2b5ad2a5e9adda3a2 (patch) | |
| tree | 83f7a0aeed6bb403b286300ad9ad0a53d763c443 /test/integer_set.c | |
| parent | 40666fa02457c84c3b8561b2bb36928bd23e9f04 (diff) | |
| download | libplist-3347d52167a36952666856c2b5ad2a5e9adda3a2.tar.gz libplist-3347d52167a36952666856c2b5ad2a5e9adda3a2.tar.bz2 | |
test: fix leak of iii in integer_set test
Free the plist created for the test before exiting, which fixes a leak
reported by LeakSanitizer.
Co-authored-by: bg0d-droid <81825610+bg0d-droid@users.noreply.github.com>
Diffstat (limited to 'test/integer_set.c')
| -rw-r--r-- | test/integer_set.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/integer_set.c b/test/integer_set.c index e25648f..07a3cb1 100644 --- a/test/integer_set.c +++ b/test/integer_set.c @@ -126,5 +126,7 @@ int main(int argc, char** argv) free(xml); xml = NULL; + plist_free(iii); + return (err > 0) ? EXIT_FAILURE : EXIT_SUCCESS; } |
