Geanylatex: fix memory leak

This leak was found by cppcheck. There should be two free-s: right before g_return and missing free at all. Memory after `g_path_get_dirname` should be freed with `g_free`.