summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--otherlibs/str/strstubs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/otherlibs/str/strstubs.c b/otherlibs/str/strstubs.c
index d8a918cf0..13dbf9ec0 100644
--- a/otherlibs/str/strstubs.c
+++ b/otherlibs/str/strstubs.c
@@ -19,6 +19,7 @@ typedef struct regexp_struct * regexp;
static void free_regexp(expr)
value expr;
{
+ expr->re.translate = NULL;
regfree(&(((regexp)expr)->re));
}