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/test_artifactory.c') 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 From 153fa891dd6ce4358cfecf0c0917f989aa5897af Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 12 Feb 2025 16:55:51 -0500 Subject: Remove redundant externs --- tests/test_artifactory.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'tests/test_artifactory.c') diff --git a/tests/test_artifactory.c b/tests/test_artifactory.c index 8a7b269..4af7eec 100644 --- a/tests/test_artifactory.c +++ b/tests/test_artifactory.c @@ -2,9 +2,7 @@ #include "artifactory.h" #include "delivery.h" -// Import private functions from core -extern int delivery_init_platform(struct Delivery *ctx); -extern int populate_delivery_cfg(struct Delivery *ctx, int render_mode); + struct JFRT_Auth gauth; struct JFRT_Auth gnoauth; -- cgit