Unfortunately its not possible to track allocations related to one file, its not even possible to track all allocations since Geany uses g_malloc (IIUC you can track this, see Glib docs), libraries use libc malloc and Scintilla uses C++ new.
This sort of question is better asked on the mailing list, it is not an issue. Will close and you can ask any follow up questions there.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/682#issuecomment-146690281