Commit Diff


commit - fbc05d22abd3750394d06b749e59b53eb2905a7e
commit + 9448e757906ca2778724c31cebbe829dbfc07c53
blob - 96f50a833ebb41149d9ed5e07e3e91e0b90cf2ba
blob + 49388458e03e5d359e56e5168c0fc37ffc8c1ec1
--- libexec/got-read-tag/got-read-tag.c
+++ libexec/got-read-tag/got-read-tag.c
@@ -70,6 +70,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