forked from pool/net-snmp
ce8e4a012d
Add some stability fixes from upstream (bnc#725766). OBS-URL: https://build.opensuse.org/request/show/89042 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/net-snmp?expand=0&rev=54
22 lines
770 B
Diff
22 lines
770 B
Diff
commit 6ef6907642247c663b9b8964b9fd44a211dbcaa7
|
|
Author: Bart Van Assche <bvanassche@acm.org>
|
|
Date: Thu Oct 20 20:30:54 2011 +0200
|
|
|
|
CHANGES: snmpd: BUG: 3408398: Fix a memory leak in agent/mibgroup/hardware/fsys.
|
|
|
|
This memory leak was introduced via commit
|
|
9bf3d96d96a8ecd4a5fc35c326dc937467002b6c: Initial HAL
|
|
implementation of FileSystem information (March 7, 2008).
|
|
|
|
diff --git a/agent/mibgroup/hardware/fsys/fsys_getfsstats.c b/agent/mibgroup/hardware/fsys/fsys_getfsstats.c
|
|
index 55327b7..3cc9bc5 100644
|
|
--- a/agent/mibgroup/hardware/fsys/fsys_getfsstats.c
|
|
+++ b/agent/mibgroup/hardware/fsys/fsys_getfsstats.c
|
|
@@ -175,4 +175,6 @@ netsnmp_fsys_arch_load( void )
|
|
}
|
|
netsnmp_fsys_calculate32(entry);
|
|
}
|
|
+
|
|
+ free(stats);
|
|
}
|