[Bugs] [Bug 1625643] Use CALLOC in dht_layouts_init
bugzilla at redhat.com
bugzilla at redhat.com
Wed Sep 5 12:56:25 UTC 2018
https://bugzilla.redhat.com/show_bug.cgi?id=1625643
Worker Ant <bugzilla-bot at gluster.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|POST |MODIFIED
--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/21094 committed in master by "N
Balachandran" <nbalacha at redhat.com> with a commit message- cluster/dht:
Initialise pointers to null
Use calloc in dht_layouts_init so to as to
prevent dht_init from attempting to free
invalid memory in case of failure.
There are other ways to do this (set first failure
to null and break there when cleaning up) but
I prefer having all pointers initialized to null.
This is a one time operation so it should not be
too expensive.
Change-Id: Ie22246047448f1cae971d48fa5aaf2efcaeb42c0
fixes: bz#1625643
Signed-off-by: N Balachandran <nbalacha 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=AC1vQP7Dyk&a=cc_unsubscribe
More information about the Bugs
mailing list