]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/memory.c
vtysh: fix incorrect memory statistics
[mirror_frr.git] / lib / memory.c
index f715044ea302c2ef6766be310518c4072830d4e2..a377d3b945e0047b36ce5ad1825acb8d11c590ae 100644 (file)
@@ -127,6 +127,12 @@ void *qstrdup(struct memtype *mt, const char *str)
        return str ? mt_checkalloc(mt, strdup(str), strlen(str) + 1) : NULL;
 }
 
+void qcountfree(struct memtype *mt, void *ptr)
+{
+       if (ptr)
+               mt_count_free(mt, ptr);
+}
+
 void qfree(struct memtype *mt, void *ptr)
 {
        if (ptr)