[Bugs] [Bug 1443145] Free runtime allocated resources upon graph switch or glfs_fini()

bugzilla at redhat.com bugzilla at redhat.com
Wed Dec 13 21:08:50 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1443145



--- Comment #23 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/17078 committed in master by \"Niels de
Vos\" <ndevos at redhat.com> with a commit message- 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 at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=wxzFJKRBXg&a=cc_unsubscribe


More information about the Bugs mailing list