Add support for querying mallocs