Removed redundant g_free