summaryrefslogtreecommitdiff
path: root/tests/diff/diffiter.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-06-25 21:20:39 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-06-25 21:20:39 +0200
commit5e0f47c3753c5ddd206ab3af6d2a231ad3da39c4 (patch)
tree9cae964bd2c2873112bc05c6face821dff05aa7f /tests/diff/diffiter.c
parentc61dc1a92e6d7fed6da158b430c206480c1439d7 (diff)
downloadlibgit2-5e0f47c3753c5ddd206ab3af6d2a231ad3da39c4.tar.gz
pack: free the new pack struct if we fail to insert
If we fail to insert the packfile in the map, make sure to free it. This makes the free function only attempt to remove its mwindows from the global list if we have opened the packfile to avoid accessing the list unlocked.
Diffstat (limited to 'tests/diff/diffiter.c')
0 files changed, 0 insertions, 0 deletions