diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2014-03-04 20:09:17 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2014-03-04 20:11:50 +0100 |
commit | a14aa1e789aca48660466f37b2804b6a9d88e1c8 (patch) | |
tree | 8452ecf3547d2839ae115ef29068022c322ff9e2 /src/commit.c | |
parent | bb3687c5a8180c39d12b437ca1822ac43482b26f (diff) | |
download | libgit2-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