summaryrefslogtreecommitdiff
path: root/src/oidmap.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-03-20 08:59:30 +0100
committerPatrick Steinhardt <ps@pks.im>2017-03-20 08:59:30 +0100
commit77c8ee74ff0f0ef4462fd6e963bc993c7a9721b3 (patch)
tree8ce088505a5c2815c86a8037135f8e356eb58a00 /src/oidmap.c
parent6dfb983cfc8992fc21690ced6203894f57a19686 (diff)
downloadlibgit2-77c8ee74ff0f0ef4462fd6e963bc993c7a9721b3.tar.gz
checkout: fix double-free of checkout_data's mkdir_map
We currently call `git_strmap_free` on `checkout_data.mkdir_map` in the `checkout_data_clear` function. The only thing protecting us from a double-free is that the `git_strmap_free` function is in fact not a function, but a macro that also sets the map to NULL. Remove the second call to `git_strmap_free` and explicitly set the map member to NULL.
Diffstat (limited to 'src/oidmap.c')
0 files changed, 0 insertions, 0 deletions