mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
don't risk a leak. precompify header
svn path=/trunk/; revision=26600
This commit is contained in:
parent
66e137da1f
commit
639abb18c5
1 changed files with 6 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "timedate.h"
|
||||
#include <timedate.h>
|
||||
|
||||
#define TIMEOUT 4000 /* 4 second timeout */
|
||||
|
||||
|
@ -171,11 +171,13 @@ GetServerTime(LPWSTR lpAddress)
|
|||
|
||||
DestroyConnection();
|
||||
}
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, pInfo);
|
||||
HeapFree(GetProcessHeap(), 0, lpAddr);
|
||||
}
|
||||
|
||||
if (pInfo)
|
||||
HeapFree(GetProcessHeap(), 0, pInfo);
|
||||
if (lpAddr)
|
||||
HeapFree(GetProcessHeap(), 0, lpAddr);
|
||||
|
||||
return ulTime;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue