These functions all behave like libc free() and do
nothing if handed a NULL pointer. The code is already doing
this, this patch just documents the behavior.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
/**
* De-allocate all memory used by hash table.
+ *
* @param h
- * Hash table to free
+ * Hash table to free, if NULL, the function does nothing.
+ *
*/
void
rte_hash_free(struct rte_hash *h);
*
* @param mp
* A pointer to the mempool structure.
+ * If NULL then, the function does nothing.
*/
void
rte_mempool_free(struct rte_mempool *mp);
* De-allocate all memory used by the ring.
*
* @param r
- * Ring to free
+ * Ring to free.
+ * If NULL then, the function does nothing.
*/
void rte_ring_free(struct rte_ring *r);