3cdfdf2a33
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:
|
||
---|---|---|
.. | ||
bsdapp | ||
common | ||
linuxapp | ||
Makefile |