X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=blob.c;fp=blob.c;h=625db43971182e14eacc64f6514c16dd45644c86;hb=13019d413647c4fbd3bb1564bbdf0d934c0a74d7;hp=d4af4a309433744d2fe819886d66741ab016f62b;hpb=705acc5c943e1147e552daf613c679c07b9772d9;p=git.git diff --git a/blob.c b/blob.c index d4af4a30..625db439 100644 --- a/blob.c +++ b/blob.c @@ -34,6 +34,7 @@ int parse_blob(struct blob *item) if (!buffer) return error("Could not read %s", sha1_to_hex(item->object.sha1)); + free(buffer); if (strcmp(type, blob_type)) return error("Object %s not a blob", sha1_to_hex(item->object.sha1));