summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-03-14 13:50:54 -0700
committerRussell Belfer <rb@github.com>2013-03-14 13:50:54 -0700
commitd85296ab9b9c4a01adb35d4d2438b72177aeabc4 (patch)
tree93f0fb0d155fd9ed571e3a5ab6a67ca37ba84607 /src/commit.c
parent0c46863384e9da3746b90ddf81eef6d25d475e5c (diff)
downloadlibgit2-d85296ab9b9c4a01adb35d4d2438b72177aeabc4.tar.gz
Fix valgrind issues (and mmap fallback for diff)
This fixes a number of issues identified by valgrind - mostly missed free calls. Inside valgrind, mmap() may fail which causes some of the diff tests to fail. This adds a fallback code path to diff_output.c:get_workdir_content() where is the mmap() fails the code will now try to read the file data directly into allocated memory (which is what it would do if the data needed to be filtered anyhow).
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions