diff options
author | Richard Braun <rbraun@sceen.net> | 2013-10-04 20:27:45 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-10-05 23:45:09 +0200 |
commit | c87688a05a8b49479ee10127470cc60acebead4a (patch) | |
tree | 26cd19e3cf64bc150c6da3a0b7a33220d50e106a /main.c | |
parent | 969078c9755b7e28dcabe277629f757e20a19f1a (diff) |
Fix mtab translator leak
The node structure for the `mounts' entry is created and destroyed on
each access, despite the fact a translator is activated on it. Fix the
issue by caching it.
* rootdir.c (rootdir_mounts_node): New variable.
(rootdir_mounts_node_lock): Likewise.
(rootdir_mounts_make_node): New function.
(rootdir_translator_make_node): Remove function.
(rootdir_entries): Replace `rootdir_translator_make_node' with
`rootdir_mounts_make_node'.
Diffstat (limited to 'main.c')
0 files changed, 0 insertions, 0 deletions