[sr-dev] git:4.1: core/parser: Free rr correctly in error cases