agent: Fix dead code in CockpitRestJson

Found by Coverity scan

Closes #446
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
daemon: Fix memory leak in CGroup show code

Found by Coverity scan

Closes #446
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>