commit - ff17000ba9063dacc7353e37abd8aeedbcd2e4a8
commit + ad3f6569ebcf5e03dcdb20e07b0339a8429388b8
blob - 1e2281754794ae39f794df658cc348bd6aaf1490
blob + 6585749c44d27fcfe5870429cad2f6748af20bc4
--- lib/patch.c
+++ lib/patch.c
got_object_commit_close(commit);
if (fd != -1 && close(fd) == -1 && err == NULL)
err = got_error_from_errno("close");
- if (ibuf != NULL)
+ if (ibuf != NULL) {
imsgbuf_clear(ibuf);
+ free(ibuf);
+ }
if (imsg_fds[0] != -1 && close(imsg_fds[0]) == -1 && err == NULL)
err = got_error_from_errno("close");
if (imsg_fds[1] != -1 && close(imsg_fds[1]) == -1 && err == NULL)