commit 9bd4f34ff9e07c077864143a61f5152ad1baa376 from: Stefan Sperling date: Sat Dec 28 13:58:13 2024 UTC make got-send-pack clear its imsgbuf on exit commit - 3cb0a77cc0b13a635a404fc5a7eeec6ae4534fc7 commit + 9bd4f34ff9e07c077864143a61f5152ad1baa376 blob - 1f5f72593dca228e5752bbe2703e47723bda37c2 blob + 6fe7fc5ded32f612d6c9339abf7b9ae01aa06400 --- libexec/got-send-pack/got-send-pack.c +++ libexec/got-send-pack/got-send-pack.c @@ -640,6 +640,7 @@ main(int argc, char **argv) if (pledge("stdio recvfd", NULL) == -1) { err = got_error_from_errno("pledge"); got_privsep_send_error(&ibuf, err); + imsgbuf_clear(&ibuf); return 1; } #endif @@ -742,6 +743,7 @@ done: fprintf(stderr, "%s: %s\n", getprogname(), err->msg); got_privsep_send_error(&ibuf, err); } + imsgbuf_clear(&ibuf); exit(0); }