X-Git-Url: https://git.saurik.com/apple/hfs.git/blobdiff_plain/558d2836cb4329cfdb20acd2c5c4cd1945ad0a66..4ec02d5c7ea2cbb45ce3725407590ab14cc10615:/tests/cases/test-set-protection-class.c diff --git a/tests/cases/test-set-protection-class.c b/tests/cases/test-set-protection-class.c index 164de50..8898493 100644 --- a/tests/cases/test-set-protection-class.c +++ b/tests/cases/test-set-protection-class.c @@ -158,9 +158,13 @@ int run_set_protection_class(__unused test_ctx_t *ctx) assert_no_err(close(fd)); if (fd2 != -1) assert_no_err(close(fd2)); + + assert_no_err(munmap(p, size)); } unlink(path); + free(buf); + free(buf2); return 0; }