]> git.proxmox.com Git - libgit2.git/commit
odb: don't leak when detecting id ambiguity
authorCarlos Martín Nieto <carlos@cmartin.tk>
Tue, 19 Jun 2012 23:41:30 +0000 (01:41 +0200)
committerCarlos Martín Nieto <carlos@cmartin.tk>
Tue, 19 Jun 2012 23:41:30 +0000 (01:41 +0200)
commitc06e0003944cb14b8236d994794c2eabb8fad1d4
treee169021b4bfb2ac71bf447056eb5ccd568be436e
parentcdca82c7842ade2074f37be22f2251d6a9040a9d
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.
src/odb.c