[rilmodem] Plugged a few memory leaks
Merge pull request #218 from monich/leaks

[rilmodem] Plugged a few memory leaks
[rilmodem] Fix ratmode bad conf file handling

g_key_file_load_from_file loads also dirs, if a bad file/dir was
picked up first then logic deduced wrong the need for ratmode reconfig.

Signed-off-by: Tommi Kenakkala <tommi.kenakkala@oss.tieto.com>