X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/21cdf8c2848cdafd97523b6604909b02148fcb4f..f84f1e4687ac1d4cda81b0cf8cd5a5092b84235e:/windows/winstore.c?ds=sidebyside diff --git a/windows/winstore.c b/windows/winstore.c index 99b1ab8a..aae5a4c6 100644 --- a/windows/winstore.c +++ b/windows/winstore.c @@ -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;