aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2025-02-12 16:55:34 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2025-02-12 16:55:34 -0500
commitcc8b3a0bc7b5c8d6154b53e89bb73732f71fd5b2 (patch)
treeca2e0c32d8fe42705ebb53f26219925a123f7a6f
parent9da7ba82e2d922f5eb4ee257c04e3c4c912592a1 (diff)
downloadstasis-cc8b3a0bc7b5c8d6154b53e89bb73732f71fd5b2.tar.gz
Free basedir on error
-rw-r--r--tests/test_artifactory.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_artifactory.c b/tests/test_artifactory.c
index 4f41543..8a7b269 100644
--- a/tests/test_artifactory.c
+++ b/tests/test_artifactory.c
@@ -78,6 +78,7 @@ int main(int argc, char *argv[]) {
mkdir(ws, 0755);
if (pushd(ws)) {
SYSERROR("failed to change directory to %s", ws);
+ guard_free(basedir);
STASIS_ASSERT_FATAL(true, "workspace creation failed");
}