agent: Fix dead code in CockpitRestJson

Found by Coverity scan

Closes #446
daemon: Fix memory leak in CGroup show code

Found by Coverity scan

Closes #446