diff options
author | Mohit Agrawal <moagrawa@redhat.com> | 2017-11-10 14:47:31 +0530 |
---|---|---|
committer | Jeff Darcy <jeff@pl.atyp.us> | 2017-11-15 14:37:31 +0000 |
commit | 959f5267fa8592d75dda9a3892378c48c55eee35 (patch) | |
tree | 455ff50de61900d28d781746adb5076fe17a512b /libglusterfs/src/ctx.c | |
parent | c46618973a22875bca4ac8835cc71bb8f3aeaa65 (diff) |
dict: Fix several coverity issues in dict
This patch fixes issues 230,592,593,110,63 from [1]
[1] https://download.gluster.org/pub/gluster/glusterfs/static-analysis/master/glusterfs-coverity/2017-10-30-9aa574a5/html/
Note: Resolve FORWARD_NULL coverity issue in glusterfs_ctx_new is
also fixed with this patch.
BUG: 789278
Change-Id: Ic4199a144a14cc9ead7366fb1c9699197141bc86
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
Diffstat (limited to 'libglusterfs/src/ctx.c')
-rw-r--r-- | libglusterfs/src/ctx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/ctx.c b/libglusterfs/src/ctx.c index 90480d09774..afd12cd22f8 100644 --- a/libglusterfs/src/ctx.c +++ b/libglusterfs/src/ctx.c @@ -48,6 +48,7 @@ glusterfs_ctx_new () if (ret) { free (ctx); ctx = NULL; + goto out; } GF_ATOMIC_INIT (ctx->stats.max_dict_pairs, 0); |