Commit b7011c591b3ddd2fc487615e4106ab29a93e1b84

Stefan Sperling 2019-04-06T06:05:44

fix double-free in error path of open_blob()

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/object.c b/lib/object.c
index eb89806..8abd471 100644
--- a/lib/object.c
+++ b/lib/object.c
@@ -1058,7 +1058,6 @@ done:
 	if (err) {
 		if (*blob) {
 			got_object_blob_close(*blob);
-			free(*blob);
 			*blob = NULL;
 		} else if (outfd != -1)
 			close(outfd);