X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fregex.c;h=ce230848facdd0ba7b1709dc311daa23dd66312b;hb=4a18657738121723a93fa7bb941ab168374954ad;hp=2e9db4b7150ca56fab2de3fe3a153f78c2e37385;hpb=f4c16347b6a8c1fa1b7ea6df4f4714f22e7293d5;p=libucw.git diff --git a/lib/regex.c b/lib/regex.c index 2e9db4b7..ce230848 100644 --- a/lib/regex.c +++ b/lib/regex.c @@ -3,6 +3,9 @@ * * (c) 1997 Martin Mares * (c) 2001 Robert Spalek + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ #include "lib/lib.h" @@ -51,6 +54,8 @@ void rx_free(regex *r) { xfree(r->buf.buffer); + if (r->buf.translate) + xfree(r->buf.translate); xfree(r); }