[sr-dev] git:master:379667e8: regex: reset pointer after free to avoid double free if an error occurs