Displaying 1 result from an estimated 1 matches for "hs_destroy".
2006 Sep 24
1
[patch] buffer overflow in q_parser.y
...(PARSE_ERROR, "couldn''t parse query ``%s''''. Error message "
- " was %se", buf, (char *)msg);
+ "was: %s", buf, (char *)msg);
}
return 0;
}
@@ -707,6 +721,9 @@
if (self->tokenized_fields) {
hs_destroy(self->tokenized_fields);
}
+ if (self->dynbuf) {
+ free(self->dynbuf);
+ }
hs_destroy(self->all_fields);
hs_destroy(self->fields_buf);
h_destroy(self->field_cache);
@@ -754,6 +771,7 @@
self->analyzer = analyzer;
self->ts_cache = h_new...