commit b6f8be123ccc243d925f8da04d5ff76e89e83fe3 from: Stefan Sperling date: Sat Dec 28 13:53:19 2024 UTC make got-read-object clear its imsgbuf before exit in an error case commit - f3204536b82155f22d702679c1d0b0e4bfa50825 commit + b6f8be123ccc243d925f8da04d5ff76e89e83fe3 blob - c07a5ff401924255c9d023166671137b5e6a6fb7 blob + cacaca8f4f78e8ba52a4e42ad12a6e42e9c6d950 --- libexec/got-read-object/got-read-object.c +++ libexec/got-read-object/got-read-object.c @@ -110,6 +110,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