mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 18:42:23 +00:00
doc: add description of the new memory macro
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
This commit is contained in:
parent
6df43392d8
commit
fdac05fd9a
@ -131,3 +131,10 @@ Usage
|
||||
- if ptr is NULL, no operation is performed (as is guaranteed by system
|
||||
implementations.) Do not surround XFREE with ``if (ptr != NULL)``
|
||||
checks.
|
||||
|
||||
.. c:function:: void XCOUNTFREE(struct memtype *mtype, void *ptr)
|
||||
|
||||
This macro is used to count the ``ptr`` as freed without actually freeing
|
||||
it. This may be needed in some very specific cases, for example, when the
|
||||
``ptr`` was allocated using any of the above wrappers and will be freed
|
||||
by some external library using simple ``free()``.
|
||||
|
Loading…
Reference in New Issue
Block a user