Skip to content
  • Taylor Blau's avatar
    pack-objects: free packing_data in more places · 66f0c710
    Taylor Blau authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    The pack-objects internals use a packing_data struct to track what
    objects are part of the pack(s) being formed.
    
    Since these structures contain allocated fields, failing to
    appropriately free() them results in a leak. Plug that leak by
    introducing a clear_packing_data() function, and call it in the
    appropriate spots.
    
    This is a fairly straightforward leak to plug, since none of the callers
    expect to read any values or have any references to parts of the address
    space being freed.
    
    Signed-off-by: default avatarTaylor Blau <me@ttaylorr.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    66f0c710