On Thu, Jul 11, 2013 at 11:19 AM, Sylvain Petreolle <
spetreolle@yahoo.fr> wrote:
> ---
> dlls/wbemprox/builtin.c | 30 ++++++++++++++++++++++++++++++
> 1 file changed, 30 insertions(+)
>
> diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c
> index 9e2369a..5b7674e 100644
> --- a/dlls/wbemprox/builtin.c
> +++ b/dlls/wbemprox/builtin.c
> @@ -1774,6 +1778,31 @@ static WCHAR *get_lastbootuptime(void)
> +
> + GetLocalTime(&st);
> + Status = GetTimeZoneInformation(&tzi);
> +
> + if(Status == TIME_ZONE_ID_INVALID) return NULL;
Aren't you leaking ret here? Maybe you could swap this check with the
memory allocation.