Commit Diff


commit - 2256993b27260cd7860c34b47751dff21a7083a8
commit + 4492af8432c70fe0b00cc5736f17590c29d79068
blob - 983478ce1555e8fa55323e842c72c6927facc1b9
blob + 0e375fdfd43d84b1f15ad53fbe7c555c0447e9dc
--- libexec/got-read-blob/got-read-blob.c
+++ libexec/got-read-blob/got-read-blob.c
@@ -161,6 +161,7 @@ main(int argc, char *argv[])
 
 		err = got_privsep_send_blob(&ibuf, size, obj->hdrlen, buf);
 done:
+		free(buf);
 		if (f) {
 			if (fclose(f) != 0 && err == NULL)
 				err = got_error_from_errno("fclose");