[Bugs] [Bug 1369523] worm: variable reten_mode is invalid to be free by mem_put in fini()

bugzilla at redhat.com bugzilla at redhat.com
Tue Oct 18 14:13:12 UTC 2016


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



--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: http://review.gluster.org/15296 committed in master by Jeff Darcy
(jdarcy at redhat.com) 
------
commit 975c5572a8300c81e127c27e677974f49e96bd5d
Author: Ryan Ding <ryan.ding at open-fs.com>
Date:   Wed Aug 24 00:08:12 2016 +0800

    features/read-only: reten_mode is invalid to be free by mem_put()

    priv->reten_mode is initialised by option 'retention-mode'. and it
    reference the memory in this->options. so fini() use mem_put to free
    priv->reten_mode will cause a problem.
    there is no need to call mem_put(), so just remove it will be fine.

    Change-Id: Iee6f9d1d54df38cba8c9b9100e2824f4f2b18ab4
    BUG: 1369523
    Signed-off-by: Ryan Ding <ryan.ding at open-fs.com>
    Reviewed-on: http://review.gluster.org/15296
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-by: Niels de Vos <ndevos at redhat.com>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>

-- 
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=2YxWxxW2US&a=cc_unsubscribe


More information about the Bugs mailing list