Add getter for the number of leaks to leak_detective_t
This commit is contained in:
@@ -42,6 +42,13 @@ struct leak_detective_t {
|
||||
*/
|
||||
void (*report)(leak_detective_t *this, bool detailed);
|
||||
|
||||
/**
|
||||
* Number of detected leaks.
|
||||
*
|
||||
* @return number of leaks
|
||||
*/
|
||||
int (*leaks)(leak_detective_t *this);
|
||||
|
||||
/**
|
||||
* Report current memory usage to out.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user