summaryrefslogtreecommitdiff
path: root/src/patch_parse.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2020-09-18 10:34:40 +0200
committerPatrick Steinhardt <ps@pks.im>2020-09-18 10:34:40 +0200
commit819492c15435efc4a2e7278ba72a2888692f60de (patch)
tree538895d4f7c3198ddf48c20f7d02138c5170722f /src/patch_parse.c
parent9e81711bace51b1d3e233675c85b289743f5fdd7 (diff)
downloadlibgit2-819492c15435efc4a2e7278ba72a2888692f60de.tar.gz
refs: fix potential free of uninitialized variable
The `signature` variable in `git_reference_rename` isn't initialized and neither does `git_reference__log_signature` always do. So if the latter function fails, we'll call `git_signature_free` on this unininitialized variable. Fix the issue by initializing the pointer with `NULL`.
Diffstat (limited to 'src/patch_parse.c')
0 files changed, 0 insertions, 0 deletions