]> 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)
committerAmos Jeffries <yadij@users.noreply.github.com>
Thu, 6 May 2021 04:56:26 +0000 (16:56 +1200)
GCC reports
 error: free-nonheap-object: snmp_core.cc(950): snmpCreateOidFromStr

src/snmp_core.cc

index 258c7ca2fc412cdf931433b9ed22c2978f5e7067..afb8721546846589e83519240a4e4dfc0b6cdfcf 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;
 }