From: Tim Duesterhus Date: Fri, 29 Mar 2024 17:21:53 +0000 (+0100) Subject: CLEANUP: Reapply ha_free.cocci X-Git-Tag: v3.0-dev7~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec38e1b39b5511719903f1f2597af7381fb441a6;p=thirdparty%2Fhaproxy.git CLEANUP: Reapply ha_free.cocci This reapplies ha_free.cocci across the whole src/ tree. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index 782aeadfa8..8a445da38c 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -2866,8 +2866,7 @@ init_proxies_list_stage1: #ifdef USE_OPENSSL /* no-alpn ? If so, it's the right moment to remove it */ if (bind_conf->ssl_conf.alpn_str && !bind_conf->ssl_conf.alpn_len) { - free(bind_conf->ssl_conf.alpn_str); - bind_conf->ssl_conf.alpn_str = NULL; + ha_free(&bind_conf->ssl_conf.alpn_str); } #ifdef TLSEXT_TYPE_application_layer_protocol_negotiation else if (!bind_conf->ssl_conf.alpn_str && !bind_conf->ssl_conf.npn_str &&