From edb7ad27967b3d6fde591e530126a2eea1a3b3a9 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 26 May 2017 12:27:04 +0200 Subject: [PATCH] Update comment. --- m-mempool.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/m-mempool.h b/m-mempool.h index fb3ff22b..e570f375 100644 --- a/m-mempool.h +++ b/m-mempool.h @@ -35,8 +35,9 @@ ... memppol_uint_t m; mempool_uint_init(m); - // alloc with mempool_uint_alloc(m); - // free with mempool_uin_free(m, ptr); + unsigned int *ptr = mempool_uint_alloc(m); + *ptr = 17; + mempool_uint_free(m, ptr); mempool_uint_clear(m); // Give back memory to system */ // NOTE: Can not use m-list since it may be expanded from LIST_DEF