]> 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>
Fri, 7 May 2021 09:38:14 +0000 (21:38 +1200)
GCC reports
 error: free-nonheap-object: snmp_core.cc(950): snmpCreateOidFromStr

src/snmp_core.cc

index ac3fb9e54508ceca5d4d87224f5fef0b09fab409..9e011fa87198d8d03fdf326b337578f01658b3b3 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;
 }