Merge pull request #1637 from ertankucukoglu/fix/search-code-path-regex-cleanup

fix(mcp): release path filter on search launch failure
This commit is contained in:
Martin Vogel authored and GitHub committed 2026-08-15 08:56:54 +02:00
commit c82e69efc6
1 file changed
+3
+3
View File
@@ -9813,6 +9813,9 @@ static char *handle_search_code(cbm_mcp_server_t *srv, const char *args) {
FILE *fp = cbm_popen(cmd, "r");
if (!fp) {
search_scratch_close(&scratch);
if (has_path_filter) {
cbm_regfree(&path_regex);
}
free(root_path);
free(pattern);
free(project);