mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 03:53:01 -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:
parent
6538793a72
commit
7dab9e5573
@ -699,8 +699,8 @@ static int transform_jumplist_registry
|
|||||||
ret = RegSetValueEx(pjumplist_key, reg_jumplist_value, 0, REG_MULTI_SZ,
|
ret = RegSetValueEx(pjumplist_key, reg_jumplist_value, 0, REG_MULTI_SZ,
|
||||||
new_value, piterator_new - new_value);
|
new_value, piterator_new - new_value);
|
||||||
|
|
||||||
|
sfree(old_value);
|
||||||
old_value = new_value;
|
old_value = new_value;
|
||||||
sfree(new_value);
|
|
||||||
} else
|
} else
|
||||||
ret = ERROR_SUCCESS;
|
ret = ERROR_SUCCESS;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user