]> mj.ucw.cz Git - libucw.git/blobdiff - lib/regex.c
Added special mode for sorting of regular files.
[libucw.git] / lib / regex.c
index 2e9db4b7150ca56fab2de3fe3a153f78c2e37385..ce230848facdd0ba7b1709dc311daa23dd66312b 100644 (file)
@@ -3,6 +3,9 @@
  *
  *     (c) 1997 Martin Mares <mj@ucw.cz>
  *     (c) 2001 Robert Spalek <robert@ucw.cz>
+ *
+ *     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);
 }