# Re: \[PATCH v2\] receive-pack: not receive pack file with large object

- From: Junio C Hamano \<hidden\>
- Date: 2021-11-11 18:35:55 
- List: git
- Page: https://ratatoskr.run/git/2021/11/7911220

```text
Han Xin [ref] writes:

>> @@ -2582,8 +2585,6 @@ int read_loose_object(const char *path,
>> char hdr[MAX_HEADER_LEN];
>> unsigned long *size = oi->sizep;
>>
>> - *contents = NULL;
>> -
>
> Deleting "*contents = NULL;" here will cause a memory free error.

Good find.  I see in the discussion downthread we have a band-aid
for this issue already ;-)

Thanks.
```
