summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-07-30 14:23:55 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2022-08-10 14:13:44 -0300
commit995bedd6fbf57ccd3bc18d0bb1c9b033054b02ad (patch)
treec0fe46be4297918bb10efc312ea0b17778c3fb18
parentc62604d54a765273f34396e81ef3130dd21562a9 (diff)
dev: Cleanup `new_pr`
-rw-r--r--pullreqd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pullreqd.c b/pullreqd.c
index 53973cd..a70d1b1 100644
--- a/pullreqd.c
+++ b/pullreqd.c
@@ -190,6 +190,9 @@ int main_loop(config *cfg, int *listen_sockets, git_repo **repos) {
char *idx_str = index_to_str(idx);
log(LOG_ERR, "Failed to get Pull Request #%s.", idx_str);
free(idx_str);
+ } else {
+ cleanup_pull_request(new_pr);
+ new_pr = NULL;
}
break;
}