From a7f56345112d5666e5a236c54af31edcac9c1aa0 Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Tue, 25 Jan 2005 23:49:30 +0000 Subject: - Update to 5.2.1. - Add a patch to fix memory leak (SF bugs #1103644). - Add WITH_DMALLOC knob (with a lot of patches to fix #include order). --- net-mgmt/net-snmp-devel/files/patch-diskio.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 net-mgmt/net-snmp-devel/files/patch-diskio.c (limited to 'net-mgmt/net-snmp-devel/files/patch-diskio.c') diff --git a/net-mgmt/net-snmp-devel/files/patch-diskio.c b/net-mgmt/net-snmp-devel/files/patch-diskio.c new file mode 100644 index 000000000000..309f0a9d1a04 --- /dev/null +++ b/net-mgmt/net-snmp-devel/files/patch-diskio.c @@ -0,0 +1,12 @@ +--- ./agent/mibgroup/ucd-snmp/diskio.c.orig Mon Jan 24 23:35:53 2005 ++++ ./agent/mibgroup/ucd-snmp/diskio.c Mon Jan 24 23:37:24 2005 +@@ -458,8 +458,8 @@ + ERROR_MSG("Memory alloc failure - devla_getstats()\n"); + return; + } ++ memset(lastat->dinfo, 0, sizeof(struct devinfo)); + } +- memset(lastat->dinfo, 0, sizeof(struct devinfo)); + + if ((GETDEVS(lastat)) == -1) { + ERROR_MSG("can't do getdevs()\n"); -- cgit v1.2.3