[Bugs] [Bug 1143880] [FEAT] Exports and Netgroups Authentication for Gluster NFS mount

bugzilla at redhat.com bugzilla at redhat.com
Sun Mar 15 14:08:30 UTC 2015


--- Comment #74 from Anand Avati <aavati at redhat.com> ---
COMMIT: http://review.gluster.org/9860 committed in master by Vijay Bellur
(vbellur at redhat.com) 
commit 2c3b6ab03262108f95d706b9ebaa207b352fc32c
Author: Niels de Vos <ndevos at redhat.com>
Date:   Wed Mar 11 23:00:09 2015 -0400

    nfs: use free() for getline() allocated string in netgroups

    'line' is allocated through getline() which uses malloc(). GF_FREE()
    will fail to release the memory because it can not find the expected
    mem-pool header. Instead of GF_FREE(), free() should be used for strings
    that get allocated with getline().

    Subsequent calls to getline() with a non-NULL pointer will get the size
    of the allocation adjusted with realloc().

    Change-Id: I612fbf17d7283174d541da6f34d26e4f44e83bfa
    BUG: 1143880
    Signed-off-by: Niels de Vos <ndevos at redhat.com>
    Reviewed-on: http://review.gluster.org/9860
    Tested-by: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Kaleb KEITHLEY <kkeithle at redhat.com>
    Reviewed-by: Vijay Bellur <vbellur 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=Wf78PVAMp6&a=cc_unsubscribe

More information about the Bugs mailing list