Commit 886ddf4
sha1_file: release fallback base's memory in unpack_entry()
If a pack entry that's used as a delta base is corrupt, unpack_entry()
marks it as unusable and then searches the object again in the hope that
it can be found in another pack or in a loose file. The memory for this
external base object is never released. Free it after use.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent c3808ca commit 886ddf4
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2351 | 2351 | | |
2352 | 2352 | | |
2353 | 2353 | | |
| 2354 | + | |
2354 | 2355 | | |
2355 | 2356 | | |
2356 | 2357 | | |
| |||
2377 | 2378 | | |
2378 | 2379 | | |
2379 | 2380 | | |
| 2381 | + | |
2380 | 2382 | | |
2381 | 2383 | | |
2382 | 2384 | | |
| |||
2395 | 2397 | | |
2396 | 2398 | | |
2397 | 2399 | | |
| 2400 | + | |
2398 | 2401 | | |
2399 | 2402 | | |
2400 | 2403 | | |
| |||
2414 | 2417 | | |
2415 | 2418 | | |
2416 | 2419 | | |
| 2420 | + | |
2417 | 2421 | | |
2418 | 2422 | | |
2419 | 2423 | | |
| |||
0 commit comments