mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
esp_https_server: fix coverity warning about null pointer dereference
This commit is contained in:
committed by
Aditya Patwardhan
parent
16e18d9170
commit
8819aa2f38
@ -287,8 +287,10 @@ static httpd_ssl_ctx_t *create_secure_context(const struct httpd_ssl_config *con
|
|||||||
return ssl_ctx;
|
return ssl_ctx;
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
free((void *) cfg->servercert_buf);
|
if (cfg) {
|
||||||
free((void *) cfg->cacert_buf);
|
free((void *) cfg->servercert_buf);
|
||||||
|
free((void *) cfg->cacert_buf);
|
||||||
|
}
|
||||||
free(cfg);
|
free(cfg);
|
||||||
free(ssl_ctx);
|
free(ssl_ctx);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Reference in New Issue
Block a user