commit - 1e691034174b7ae92e5960ca56dd364bf8b33c0bf593c3be6e14c0c981a48e06
commit + 3d1595598c1a0b7093af90589698bb8108148df2d5999d30ba0b5f596fd06a45
blob - cc9ce8e5d90cdb6de69db0cc7805ce8ddb296f3077b848a81a04c228e0756f10
blob + 01508ab5a7961d85aeec9a44ddb338e8593d9dc9989f85f3b298dcd7149af69a
--- libexec/got-read-patch/got-read-patch.c
+++ libexec/got-read-patch/got-read-patch.c
if (pledge("stdio recvfd", NULL) == -1) {
err = got_error_from_errno("pledge");
got_privsep_send_error(&ibuf, err);
+ imsgbuf_clear(&ibuf);
return 1;
}
#endif
err = got_error_from_errno("fclose");
if (close(GOT_IMSG_FD_CHILD) == -1 && err == NULL)
err = got_error_from_errno("close");
+ imsgbuf_clear(&ibuf);
return err ? 1 : 0;
}