Fixed up a few scan-build warnings

Signed-off-by: Keith Wiles <keith.wiles@windriver.com>