[sr-dev] git:master:bddf16db: db_text: free pointer in case of error