summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-06-20 01:41:30 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-06-20 01:41:30 +0200
commitc06e0003944cb14b8236d994794c2eabb8fad1d4 (patch)
treee169021b4bfb2ac71bf447056eb5ccd568be436e /include/git2/commit.h
parentcdca82c7842ade2074f37be22f2251d6a9040a9d (diff)
downloadlibgit2-c06e0003944cb14b8236d994794c2eabb8fad1d4.tar.gz
odb: don't leak when detecting id ambiguity
If we find several objects with the same prefix, we need to free the memory where we stored the earlier object. Keep track of the raw.data pointer across read_prefix calls and free it if we find another object.
Diffstat (limited to 'include/git2/commit.h')
0 files changed, 0 insertions, 0 deletions