From: Sup Yut Sum Date: Thu, 18 Apr 2013 23:51:56 +0000 (+0800) Subject: Fix dereferencing null pointer in git_close_log X-Git-Tag: REL_1.8.3.0_EXTERNAL~48 X-Git-Url: https://repo.or.cz/w/TortoiseGit.git/commitdiff_plain/57e4c53633a742635fda17d3ee7bfca22eb05151 Fix dereferencing null pointer in git_close_log Signed-off-by: Sup Yut Sum --- diff --git a/ext/gitdll/gitdll.c b/ext/gitdll/gitdll.c index 3aa8e9c08..588ef2307 100644 --- a/ext/gitdll/gitdll.c +++ b/ext/gitdll/gitdll.c @@ -441,7 +441,8 @@ int git_close_log(GIT_LOG handle) } free_all_pack(); - free_notes(*display_notes_trees); + if (display_notes_trees) + free_notes(*display_notes_trees); display_notes_trees = 0; return 0; }