client: fix memory leak state.client and state.loop
When running "plymouth --get-splash-plugin-path", memory from state.client and state.loop is leaked.
When running "plymouth --get-splash-plugin-path", memory from state.client and state.loop is leaked.