You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DnsRecordListFree only free the NULL, this may cause memory leak issue
BOOL
GetDnsCachedData(
__in IN LPWSTR Name,
__in IN WORD Type
)
{
/*
Other code /
while (DnsRecord != NULL) {
/
Other code
*/
DnsRecord = DnsRecord->pNext;
}
// Problem
DnsRecordListFree(DnsRecord, TRUE);
// End of Problem
// Other code
return TRUE;
}
The text was updated successfully, but these errors were encountered:
DnsRecordListFree only free the NULL, this may cause memory leak issue
BOOL
GetDnsCachedData(
__in IN LPWSTR Name,
__in IN WORD Type
)
{
/*
Other code
/
while (DnsRecord != NULL) {
/
Other code
*/
DnsRecord = DnsRecord->pNext;
}
// Problem
DnsRecordListFree(DnsRecord, TRUE);
// End of Problem
// Other code
return TRUE;
}
The text was updated successfully, but these errors were encountered: