summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-05-31 15:06:22 +0200
committerCarlos Martín Nieto <cmn@elego.de>2011-05-31 17:33:23 +0200
commit7bc9e2aa2fe4b554021129fabb8a46b5a33ed4e9 (patch)
treee913f7d60220959e044d77e4ca3eebbaa086729e /include/git2/commit.h
parentf2abee47d8908cd74f1ca2e46f30c8b9f6a07754 (diff)
downloadlibgit2-7bc9e2aa2fe4b554021129fabb8a46b5a33ed4e9.tar.gz
Guard against double-freeing the current section
If parse_section_header{,_ext} return an error, current_section doesn't get allocated. Set it to NULL after freeing so we don't try to free it again. This fixes part 2-2 of Issue #210. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'include/git2/commit.h')
0 files changed, 0 insertions, 0 deletions