Commit Diff


commit - 57a51a507704f0dd91c88a435d6014f6dcf0c9e5
commit + 4a8b2c410ecba075e6a98ad3b0d658e7037d6643
blob - a99df566ef355d5524dd40e2f5847702a7e4e929
blob + a37151e9c26c717e0134c3112302bbaa24cbefb6
--- libexec/got-read-gitconfig/got-read-gitconfig.c
+++ libexec/got-read-gitconfig/got-read-gitconfig.c
@@ -358,6 +358,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