From cc8b3a0bc7b5c8d6154b53e89bb73732f71fd5b2 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 12 Feb 2025 16:55:34 -0500 Subject: Free basedir on error --- tests/test_artifactory.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') 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"); } -- cgit