]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix GCC 10.2.0 build on Ubuntu Hirsute s390x (#796)
authorSergio Durigan Junior <github@sergiodj.net>
Sun, 4 Apr 2021 20:16:47 +0000 (20:16 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 5 Apr 2021 10:30:28 +0000 (10:30 +0000)
GCC reports
 error: free-nonheap-object: snmp_core.cc(950): snmpCreateOidFromStr

src/snmp_core.cc

index 7a51de6fa9bdbe7e4b4f99f9d562c1b93a2ed1a4..a53e87c2cc8b320dca9c96717717d12e228c9ddd 100644 (file)
@@ -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;
 }