<div dir="ltr">Hi All,<div><br></div><div>I hope this is right place to ask such a newbie question like the following.</div><div><br></div><div>I am trying to write a checker to catch potential handle leaks (it's on Windows: a handle is closed by CloseHandle).</div><div><br></div><div>So I took SimpleStreamChecker as a base, now my checkPreCall() checks if "CloseHandle" is called. Call.isCalled() works great except one case when CloseHandle is called by pointer. It happens because of using a template class that took a pointer to closing function as template parameter (useful to close different types of handles by appropriate functions: FindClose, CloseHandle etc.).</div><div><br></div><div>Call.dump() prints "&CloseHandle(this->m_h)" in this case, so it understands that this a pointer and that this is a pointer of CloseHandle. But how to "extract" the the identifier of CloseHandle?<br></div><div><br></div><div>Thank you in advance!</div><div><div><br></div>-- <br><div class="gmail_signature">Best regards, <br>Artem A. Razin</div>
</div></div>