From: Sergio Durigan Junior Date: Sun, 4 Apr 2021 20:16:47 +0000 (+0000) Subject: Fix GCC 10.2.0 build on Ubuntu Hirsute s390x (#796) X-Git-Tag: SQUID_4_15~4 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=fe3e3486def20a07cff9f387df18b44f1a806fd6;p=thirdparty%2Fsquid.git Fix GCC 10.2.0 build on Ubuntu Hirsute s390x (#796) GCC reports error: free-nonheap-object: snmp_core.cc(950): snmpCreateOidFromStr --- diff --git a/src/snmp_core.cc b/src/snmp_core.cc index ac3fb9e545..9e011fa871 100644 --- a/src/snmp_core.cc +++ b/src/snmp_core.cc @@ -947,7 +947,7 @@ snmpCreateOidFromStr(const char *str, oid **name, int *nl) } // if we aborted before the lst octet was found, return false. - safe_free(name); + safe_free(*name); return false; }