Commit 1fb23e6
force_object_loose: Fix memory leak
read_packed_sha1 expectes its caller to free the buffer it returns, which
force_object_loose didn't do.
This leak is eventually triggered by "git gc", when it is manually invoked
or there are too many packs around, making gc totally unusable when there
are lots of unreachable objects.
Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Acked-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 7213080 commit 1fb23e6
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2322 | 2322 | | |
2323 | 2323 | | |
2324 | 2324 | | |
| 2325 | + | |
2325 | 2326 | | |
2326 | 2327 | | |
2327 | 2328 | | |
2328 | 2329 | | |
2329 | 2330 | | |
2330 | 2331 | | |
2331 | 2332 | | |
2332 | | - | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
2333 | 2337 | | |
2334 | 2338 | | |
2335 | 2339 | | |
| |||
0 commit comments