summaryrefslogtreecommitdiff
path: root/sample/crnl.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2019-08-07 09:32:54 +0200
committerJörg Frings-Fürst <debian@jff.email>2019-08-07 09:32:54 +0200
commit1fb4b2b100d76cfa362cd021760b7cc0038cf55d (patch)
tree2443bfdda69965757d8ce335cda1a28bb7327834 /sample/crnl.c
parentb134093d75235a90f09ff591137aed9dbdad6e89 (diff)
parent40f3d0030e6e98bcb02d6523e5ee48497dec49a6 (diff)
Update upstream source from tag 'upstream/6.9.3'
Update to upstream version '6.9.3' with Debian dir 0b54db06b48ebf22a6090f21e4dcc045a1085e11
Diffstat (limited to 'sample/crnl.c')
-rw-r--r--sample/crnl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sample/crnl.c b/sample/crnl.c
index 3ad1210..bfa563e 100644
--- a/sample/crnl.c
+++ b/sample/crnl.c
@@ -65,6 +65,8 @@ x(int no, char* pattern_arg, char* str_arg,
char s[ONIG_MAX_ERROR_MESSAGE_LEN];
onig_error_code_to_str(s, r);
fprintf(stderr, "ERROR: %s\n", s);
+ onig_region_free(region, 1 /* 1:free self, 0:free contents only */);
+ onig_free(reg);
return -1;
}