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: 4.15-20210522-snapshot~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1219d6dbf3f771f0bb7d8220454af2a1c4dca688;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 7a51de6fa9..a53e87c2cc 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; }