]> git.saurik.com Git - apple/hfs.git/blobdiff - tests/cases/test-set-protection-class.c
hfs-407.200.4.tar.gz
[apple/hfs.git] / tests / cases / test-set-protection-class.c
index 164de50260370a6b4adbfce4be7881762a914508..88984938836f7136c49ce7317b637ef6c23e4f36 100644 (file)
@@ -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;
 }