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: 0fe11ec592b2 ("eal: add vdev init and uninit") Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>