Commit Diff


commit - 7d59fa89f063a4759446904a9601ee1374e9cad4
commit + 77f25f24272499407816ad8c03057dd0ddde3d3f
blob - 7394b47b045055ad496a41b569bdf1df91dc44af
blob + d23947e452d72ebf846600e7bf03c9ea2d1d2bd0
--- libexec/got-read-blob/got-read-blob.c
+++ libexec/got-read-blob/got-read-blob.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