rcld: Fix wrong sizeof argument

Signed-off-by: Pawel Dziepak <pdziepak@quarnos.org>
rcld: Remove unused variable old_child

Signed-off-by: Pawel Dziepak <pdziepak@quarnos.org>
rpc: Fix double free of client if creation fails

Signed-off-by: Pawel Dziepak <pdziepak@quarnos.org>
protocol: Fix uninitialized return value

Signed-off-by: Pawel Dziepak <pdziepak@quarnos.org>