numam-dpdk/lib/librte_eal
Emmanuel Roullit 3cdfdf2a33 devargs: reset driver name pointer on parsing failure
The pointer set by strdup() needs to be cleared on failure to avoid a
potential double-free from the caller.

Found with clang static analysis:
lib/librte_eal/common/eal_common_devargs.c:123:2:
warning: Attempt to free released memory
        free(buf);
        ^~~~~~~~~

Fixes: 0fe11ec592 ("eal: add vdev init and uninit")

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
2017-01-29 23:34:07 +01:00
..
bsdapp eal: fix FreeBSD build 2017-01-19 15:29:45 +01:00
common devargs: reset driver name pointer on parsing failure 2017-01-29 23:34:07 +01:00
linuxapp kni: guard against unterminated name oops 2017-01-29 22:50:28 +01:00
Makefile config: remove EAL flags for OS environment 2016-03-05 11:09:31 +01:00