X-Git-Url: https://git.saurik.com/apple/hfs.git/blobdiff_plain/558d2836cb4329cfdb20acd2c5c4cd1945ad0a66..0af7c7673fb2c9da95a48e7e8092324dc441ed24:/tests/cases/test-fsync.c diff --git a/tests/cases/test-fsync.c b/tests/cases/test-fsync.c index 144b7f1..ac41b27 100644 --- a/tests/cases/test-fsync.c +++ b/tests/cases/test-fsync.c @@ -34,7 +34,7 @@ int run_fsync(__unused test_ctx_t *ctx) disk_image_t *di = NULL; const char *tstdir; -#if TARGET_OS_EMBEDDED +#if (TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR) struct statfs sfs; bool hfs_root; @@ -47,7 +47,7 @@ int run_fsync(__unused test_ctx_t *ctx) hfs_root = true; tstdir = "/tmp"; } -#else // !TARGET_OS_EMBEDDED +#else // !TARGET_OS_IPHONE & !SIM di = disk_image_get(); tstdir = di->mount_point; #endif @@ -109,6 +109,7 @@ int run_fsync(__unused test_ctx_t *ctx) free(file); free(sock); free(fifo); + free(buf); return 0; }