main: assure args->status_result is set before freeing args
main: assure args->status_result is set before freeing args

Otherwise the assertion in install_args_free() that status_result is >=
0 will wail. Fixed by reducing scope of args allocation and freeing.

Signed-off-by: Enrico Jorns <a2e5f936c390f36494e46e71bcfbe365bb1e8c49@pengutronix.de>

jluebbe/rauc,rauc/rauc,jluebbe/rauc,rauc/rauc,rauc/rauc,ejoerns/rauc,ejoerns/rauc,ejoerns/rauc,jluebbe/rauc