summaryrefslogtreecommitdiffstats
path: root/src/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/search.c b/src/search.c
index 5370769423..20745d9bc6 100644
--- a/src/search.c
+++ b/src/search.c
@@ -338,6 +338,15 @@ restore_search_patterns()
}
#endif
+#if defined(EXITFREE) || defined(PROTO)
+ void
+free_search_patterns()
+{
+ vim_free(spats[0].pat);
+ vim_free(spats[1].pat);
+}
+#endif
+
/*
* Return TRUE when case should be ignored for search pattern "pat".
* Uses the 'ignorecase' and 'smartcase' options.