[PATCH 2/3] programs/cmd: When parsing, dispose created objects on error path.