View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-25-2021 , 09:22   Re: Memory leak detected in plugin
Reply With Quote #2

You maybe need fetch result into variable, close handle, then return variable (as result or 0, false, etc. etc.)
Quote:
Originally Posted by Lawyn View Post
Code:
...
	Handle asd = SQL_Query(DB, qwe);
	if (asd != INVALID_HANDLE && SQL_FetchRow(asd)) { return SQL_FetchInt(asd, 0); CloseHandle(asd);}
	CloseHandle(asd);
...

Last edited by Bacardi; 03-25-2021 at 09:24.
Bacardi is offline