commit - 3cb0a77cc0b13a635a404fc5a7eeec6ae4534fc7
commit + 9bd4f34ff9e07c077864143a61f5152ad1baa376
blob - 1f5f72593dca228e5752bbe2703e47723bda37c2
blob + 6fe7fc5ded32f612d6c9339abf7b9ae01aa06400
--- libexec/got-send-pack/got-send-pack.c
+++ libexec/got-send-pack/got-send-pack.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
fprintf(stderr, "%s: %s\n", getprogname(), err->msg);
got_privsep_send_error(&ibuf, err);
}
+ imsgbuf_clear(&ibuf);
exit(0);
}