From: David Barr Date: Mon, 29 Nov 2010 23:48:28 GMT Subject: [PATCH] fixup! fast-import: let importers retrieve blobs Message-ID: <1291074508-18926-1-git-send-email-david.barr@cordelta.com> In-Reply-To: <20101128194501.GD19998@burratino> Signed-off-by: David Barr --- 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