summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-dir-read.h
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2017-02-21 21:35:12 +0100
committerJeff Darcy <jeff@pl.atyp.us>2017-12-13 21:08:22 +0000
commitbafe0c14f5743cb084a89595860e4ba33baf900c (patch)
tree2b782e82c4e04d44b730fd14c764b9facd01ce4c /xlators/cluster/afr/src/afr-dir-read.h
parent2d0a763677b1f4e9938a1a1a2587883b2262aaf6 (diff)
logging: free the strdup'd filename and ident on gf_log_fini()
Every time glfs_set_logging() is called, the strings containing the filename and the identity of the logfile leaks. Both should be free'd before a new gf_strdup() is done and in gf_log_fini(). In addition to the free'ing of the filename, the code has been adapted to use sys_open() and fdopen() so that unneeded closes and re-opening of the filedescriptor are prevented. Change-Id: I63e3e757ac990a4db419206dfad141ab68dbfa06 BUG: 1443145 Signed-off-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'xlators/cluster/afr/src/afr-dir-read.h')
0 files changed, 0 insertions, 0 deletions