index 7377008744430cea453010fe93e6c1f51c37fdde..496f270043a617242efa9d27285853feb2597484 100644 (file)
--- a/blob.c
+++ b/blob.c
{
struct object *obj = lookup_object(sha1);
if (!obj) {
- struct blob *ret = xcalloc(1, sizeof(struct blob));
+ struct blob *ret = alloc_blob_node();
created_object(sha1, &ret->object);
ret->object.type = TYPE_BLOB;
return ret;