kvargs: fix freeing behaviour for null
authorPawel Wodkowski <pawelx.wodkowski@intel.com>
Wed, 25 Feb 2015 12:41:24 +0000 (13:41 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 4 Mar 2015 10:19:37 +0000 (11:19 +0100)
commitc34af7424e092bd5e12ae84993a6ba64fe64d18f
tree3c9be6174bc5c3195fe163c46223d4fc33d72f85
parent5663c25dcceb744b980ff28df5687de7ec8cbbf8
kvargs: fix freeing behaviour for null

By convention free() functions should ignore NULL parameter. This patch
add this behaviour for rte_kvargs_free().

Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_kvargs/rte_kvargs.c
lib/librte_kvargs/rte_kvargs.h