Thread (28 messages) flat view 28 messages, 4 authors, 2016-06-15
STALE3734d

[PATCH] fixup! fast-import: let importers retrieve blobs

From: David Barr <hidden>
Date: 2016-06-15 22:50:08
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: David Barr <redacted>
---
 fast-import.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fast-import.c b/fast-import.c
index 4dfea07..aa8f260 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -2752,6 +2752,7 @@ static void cat_blob(struct object_entry *oe, unsigned char sha1[20])
 		strbuf_reset(&line);
 		strbuf_addf(&line, "%s missing\n", sha1_to_hex(sha1));
 		cat_blob_write(line.buf, line.len);
+		strbuf_release(&line);
 		free(buf);
 		return;
 	}
@@ -2764,6 +2765,7 @@ static void cat_blob(struct object_entry *oe, unsigned char sha1[20])
 	strbuf_addf(&line, "%s %s %lu\n", sha1_to_hex(sha1),
 						typename(type), size);
 	cat_blob_write(line.buf, line.len);
+	strbuf_release(&line);
 	cat_blob_write(buf, size);
 	cat_blob_write("\n", 1);
 	free(buf);
-- 
1.7.3.2.846.gf4b062
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help