Project

General

Profile

Bug #1381 ยป without_remember_the_previous_encoding.patch

ujihisa (Tatsuhiro Ujihisa), 04/15/2009 07:52 PM

View differences:

re.c
regs, ONIG_OPTION_NONE);
if (!tmpreg) RREGEXP(re)->usecnt--;
if (tmpreg) {
if (RREGEXP(re)->usecnt) {
onig_free(reg);
}
else {
onig_free(RREGEXP(re)->ptr);
RREGEXP(re)->ptr = reg;
}
onig_free(reg);
}
if (result < 0) {
if (regs == &regi)
    (1-1/1)