diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2022-07-30 14:23:55 -0300 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2022-08-10 14:13:44 -0300 |
commit | 995bedd6fbf57ccd3bc18d0bb1c9b033054b02ad (patch) | |
tree | c0fe46be4297918bb10efc312ea0b17778c3fb18 | |
parent | c62604d54a765273f34396e81ef3130dd21562a9 (diff) |
dev: Cleanup `new_pr`
-rw-r--r-- | pullreqd.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |