Browse Source

[multiple] add some missing config cleanup

(thx stbuehler)
master
Glenn Strauss 3 months ago
parent
commit
949662d27e
4 changed files with 4 additions and 0 deletions
  1. +1
    -0
      src/mod_accesslog.c
  2. +1
    -0
      src/mod_mbedtls.c
  3. +1
    -0
      src/mod_openssl.c
  4. +1
    -0
      src/mod_wolfssl.c

+ 1
- 0
src/mod_accesslog.c View File

@ -441,6 +441,7 @@ static void mod_accesslog_free_accesslog(accesslog_st * const x, plugin_data *p)
close(x->log_access_fd);
}
free(x->access_logbuffer.ptr);
free(x);
}
static void mod_accesslog_free_format_fields(format_fields * const ff) {


+ 1
- 0
src/mod_mbedtls.c View File

@ -450,6 +450,7 @@ mod_mbedtls_free_config (server *srv, plugin_data * const p)
plugin_cert *pc = cpv->v.v;
mbedtls_pk_free(&pc->ssl_pemfile_pkey);
mbedtls_x509_crt_free(&pc->ssl_pemfile_x509);
free(pc);
}
break;
case 2: /* ssl.ca-file */


+ 1
- 0
src/mod_openssl.c View File

@ -597,6 +597,7 @@ mod_openssl_free_config (server *srv, plugin_data * const p)
X509_free(pc->ssl_pemfile_x509);
sk_X509_pop_free(pc->ssl_pemfile_chain, X509_free);
buffer_free(pc->ssl_stapling);
free(pc);
}
break;
case 2: /* ssl.ca-file */


+ 1
- 0
src/mod_wolfssl.c View File

@ -552,6 +552,7 @@ mod_openssl_free_config (server *srv, plugin_data * const p)
/*buffer_free(pc->ssl_pemfile_x509);*//*(part of chain)*/
mod_wolfssl_free_der_certs(pc->ssl_pemfile_chain);
buffer_free(pc->ssl_stapling);
free(pc);
}
break;
case 2: /* ssl.ca-file */


Loading…
Cancel
Save