$OpenBSD: patch-filters_c,v 1.1 2002/02/23 23:45:18 pvalchev Exp $
--- filters.c.orig	Thu Feb 24 10:55:37 1994
+++ filters.c	Sat Feb 23 16:38:21 2002
@@ -25,12 +25,17 @@
 
 #include	<stdio.h>
 #include	<string.h>
+#include	<sys/param.h>
 
 #include	<xview/xview.h>
 #include	<xview/panel.h>
 #include	<xview/notice.h>
 #include	<xview/xv_xrect.h>
 
+#if (defined(BSD) && (BSD >= 199306))
+#include	<regex.h>
+#endif
+
 #include	"manifest.h"
 #include	"contool.h"
 #include	"contool_ui.h"
@@ -122,8 +127,14 @@ Filter	*f;
 
 {
 	cond_free(f->start);
+#if (defined(BSD) && (BSD >= 199306))
+	regfree(f->start_re);
+#endif
 	cond_free(f->start_re);
 	cond_free(f->stop);
+#if (defined(BSD) && (BSD >= 199306))
+	regfree(f->stop_re);
+#endif
 	cond_free(f->stop_re);
 	cond_free(f->command);
 	cond_free(f->comment);
