fixing cppcheck memory leaks

[logcollector/read_win_event_channel.c:194]: (error) Memory leak: result
[logcollector/read_win_event_channel.c:199]: (error) Memory leak: result
[logcollector/read_win_event_channel.c:312]: (error) Memory leak: channel
[logcollector/read_win_event_channel.c:312]: (error) Memory leak: context
More cppcheck clean up

[analysisd/decoders/decoders_list.c:93]: (error) Memory leak: new_node
[analysisd/decoders/decoders_list.c:100]: (error) Memory leak: new_node
[analysisd/decoders/decoders_list.c:110]: (error) Memory leak: new_node
[analysisd/decoders/decoders_list.c:121]: (error) Memory leak: new_node
correcting a scoping varaible issue
Merge pull request #398 from jrossi/cppcheck-cleanup

Cppcheck cleanup