app/test: fix crash after null check
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 16 Dec 2014 15:03:49 +0000 (15:03 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 17 Dec 2014 00:04:06 +0000 (01:04 +0100)
commitb38e6ee0fa7508b81753cedb1d6b121f2dee32fe
tree09447a9f8dbee0bdec979f1d6423338fb3d48b8c
parent3354dd7fef7d8acd03b68c754595e57897f93784
app/test: fix crash after null check

In the kvargs test cases, we were checking for errors by checking if the
returned pointer value was NULL. In the error handling, we then tried to
free back the NULL pointer, which would cause a crash.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
app/test/test_kvargs.c