Fix scan-build warnings

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>