mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fixed valgrind complain
This commit is contained in:
@@ -216,6 +216,8 @@ apr_status_t ap_http_out_filter(ap_filter_t *f, apr_bucket_brigade *b) {
|
||||
}
|
||||
|
||||
void modsecTerminate() {
|
||||
apr_pool_destroy(pool);
|
||||
pool = NULL;
|
||||
apr_terminate();
|
||||
}
|
||||
|
||||
@@ -267,7 +269,7 @@ conn_rec *modsecNewConnection() {
|
||||
|
||||
apr_pool_create(&pc, pool);
|
||||
|
||||
c = apr_palloc(pc, sizeof(conn_rec));
|
||||
c = apr_pcalloc(pc, sizeof(conn_rec));
|
||||
|
||||
c->base_server = server;
|
||||
c->id = 1;
|
||||
@@ -300,7 +302,7 @@ request_rec *modsecNewRequest(conn_rec *connection, directory_config *config)
|
||||
|
||||
apr_pool_create(&pr, connection->pool);
|
||||
|
||||
r = apr_palloc(pr, sizeof(request_rec));
|
||||
r = apr_pcalloc(pr, sizeof(request_rec));
|
||||
|
||||
r->connection = connection;
|
||||
r->server = server;
|
||||
|
Reference in New Issue
Block a user