Dev cppcheck warnings v1.2

https://buildbot.suricata-ids.org/builders/inliniac/builds/89
https://buildbot.suricata-ids.org/builders/inliniac-pcap/builds/10