1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-03-12 18:13:50 -05:00

Vyacheslav Andrejev points out a heap management goof in the new jump

list code. Free the old value of the pointer variable we just
overwrote, not the new one!

[originally from svn r9062]
This commit is contained in:
Simon Tatham 2010-12-29 13:35:44 +00:00
parent 6538793a72
commit 7dab9e5573

View File

@ -699,8 +699,8 @@ static int transform_jumplist_registry
ret = RegSetValueEx(pjumplist_key, reg_jumplist_value, 0, REG_MULTI_SZ,
new_value, piterator_new - new_value);
sfree(old_value);
old_value = new_value;
sfree(new_value);
} else
ret = ERROR_SUCCESS;