summaryrefslogtreecommitdiffstats
path: root/utils/exportfs/exportfs.c
diff options
context:
space:
mode:
authorKevin Coffman <kwc@citi.umich.edu>2007-02-08 17:27:14 -0500
committerNeil Brown <neilb@suse.de>2007-02-09 11:42:19 +1100
commite54fb292fcd9253743fc17ba0af26dcbb0723a5d (patch)
tree57e5f611ba448c995bfc14860c0e66bc75ba1dfd /utils/exportfs/exportfs.c
parent2344b8edd958a1089fb19e985a735b41f6e7677e (diff)
downloadnfs-utils-e54fb292fcd9253743fc17ba0af26dcbb0723a5d.tar.gz
nfs-utils-e54fb292fcd9253743fc17ba0af26dcbb0723a5d.tar.xz
nfs-utils-e54fb292fcd9253743fc17ba0af26dcbb0723a5d.zip
Fix memory leak in idmapd.
Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Kevin Coffman <kwc@citi.umich.edu> There is a pretty nasty memory leak in idmapd in dirscancb(). Some of our customers have reported that idmapd can eat gigabytes of memory on machines with a large number of mounts and unmounts and a long uptime. That function uses scandir(), which malloc's an array of strings, but dirscancb() never frees the strings or the array. The following patch should correct this, but I've not yet tested it on 1.0.10 (only on the RHEL4 1.0.6 version). Still, the code is very similar and I'm fairly certain the problem exists in both versions. Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'utils/exportfs/exportfs.c')
0 files changed, 0 insertions, 0 deletions