Dev scanbuild fixes v1.2

https://buildbot.suricata-ids.org/builders/inliniac/builds/86
https://buildbot.suricata-ids.org/builders/inliniac-pcap/builds/7