diff options
author | N Balachandran <nbalacha@redhat.com> | 2018-09-05 18:16:37 +0530 |
---|---|---|
committer | N Balachandran <nbalacha@redhat.com> | 2018-09-06 04:51:27 +0000 |
commit | 889040e20d86da14aab372203ebaa91dda5db6f2 (patch) | |
tree | 19ac205c4b64961fc758772f5768b4580249d394 /xlators/storage/posix/src/posix-inode-fd-ops.c | |
parent | 2b95d2c0be20a62279bbfebc17457004aca0988f (diff) |
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@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix-inode-fd-ops.c')
0 files changed, 0 insertions, 0 deletions