aboutsummaryrefslogtreecommitdiff
path: root/src/recipe.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2023-12-10 01:05:48 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2023-12-10 01:05:48 -0500
commitc12470a965c395f3c589675597876ec9c4508913 (patch)
tree74593885e66f373e38ba4f8ff66af4eeb5c4f259 /src/recipe.c
parent2497ec1fbbf0375ef7e00aa0b4c5d550c751dc88 (diff)
downloadstasis-c12470a965c395f3c589675597876ec9c4508913.tar.gz
guard_free() all pointers
Diffstat (limited to 'src/recipe.c')
-rw-r--r--src/recipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/recipe.c b/src/recipe.c
index 3d5b3ec..159affe 100644
--- a/src/recipe.c
+++ b/src/recipe.c
@@ -25,7 +25,7 @@ int recipe_clone(char *recipe_dir, char *url, char *gitref, char **result) {
recipe_dir, reponame, destdir);
}
if (rmtree(destdir)) {
- free(*result);
+ guard_free(*result)
*result = NULL;
return -1;
}