From 995bedd6fbf57ccd3bc18d0bb1c9b033054b02ad Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sat, 30 Jul 2022 14:23:55 -0300 Subject: dev: Cleanup `new_pr` --- pullreqd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pullreqd.c') 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; } -- cgit v1.2.3-13-gbd6f