summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-03-04 20:09:17 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2014-03-04 20:11:50 +0100
commita14aa1e789aca48660466f37b2804b6a9d88e1c8 (patch)
tree8452ecf3547d2839ae115ef29068022c322ff9e2 /src/commit.c
parentbb3687c5a8180c39d12b437ca1822ac43482b26f (diff)
downloadlibgit2-a14aa1e789aca48660466f37b2804b6a9d88e1c8.tar.gz
pack-objects: free memory safely
A few fixes have accumulated in this area which have made the freeing of data a bit muddy. Make sure to free the data only when needed and once. When we are going to write a delta to the packfile, we need to free the data, otherwise leave it. The current version of the code mixes up the checks for po->data and po->delta_data.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions