summaryrefslogtreecommitdiff
path: root/lib/memory.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-12-01 12:08:52 -0500
committerGitHub <noreply@github.com>2020-12-01 12:08:52 -0500
commit5c1a899432d4efdea247f584d45a84351ff77a3a (patch)
tree425a0bf51260ec02fa6b67a7dc70852eca268be7 /lib/memory.c
parent958c62b712c8138135664740de49d2b1cd2e871a (diff)
parentfdac05fd9ab9d7f09f750243d0f4a97b25d389a1 (diff)
Merge pull request #7632 from idryzhov/vtysh-memory-fixes
vtysh memory fixes
Diffstat (limited to 'lib/memory.c')
-rw-r--r--lib/memory.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/memory.c b/lib/memory.c
index f715044ea3..a377d3b945 100644
--- a/lib/memory.c
+++ b/lib/memory.c
@@ -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)