/*
- * $Id: snmp_core.cc,v 1.48 2001/05/16 07:47:00 hno Exp $
+ * $Id: snmp_core.cc,v 1.49 2001/05/27 23:24:44 hno Exp $
*
* DEBUG: section 49 SNMP support
* AUTHOR: Glenn Chisholm
snmplib_debug_hook = snmpSnmplibDebug;
- /* XXX: This leaks memory due to snmpAddNode duplicating the passed
- * oid node, and we are not freeing the one returned by snmpCreateOid
- */
mib_tree_head = snmpAddNode(snmpCreateOid(1, 1),
1, NULL, NULL, 1,
snmpAddNode(snmpCreateOid(2, 1, 3),
va_start(args, children);
entry = xmalloc(sizeof(mib_tree_entry));
- entry->name = snmpOidDup(name, len);
+ entry->name = name;
entry->len = len;
entry->parsefunction = parsefunction;
entry->instancefunction = instancefunction;