diff options
author | Manikandan Selvaganesh <mselvaga@redhat.com> | 2015-04-23 13:23:55 +0530 |
---|---|---|
committer | Shyamsundar Ranganathan <srangana@redhat.com> | 2015-05-14 08:45:30 -0700 |
commit | 1d110ec14384292fff67b88150529a513b729c5c (patch) | |
tree | 93a25527a385fec5949f2fdd9ade07feb0f47a51 | |
parent | c56c3566feb9bed18fdec42e8e704ea185dce910 (diff) |
dht : null dereference coverity fix.
CID : 1124521
Change-Id: Ie524935d636195cb6894074095b9b98fe28dbc2c
BUG: 789278
Signed-off-by: Manikandan Selvaganesh <mselvaga@redhat.com>
Reviewed-on: http://review.gluster.org/10348
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Sakshi Bansal
Reviewed-by: N Balachandran <nbalacha@redhat.com>
Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
-rw-r--r-- | xlators/cluster/dht/src/dht-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 8309b317017..c6eb5d8eae3 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -6007,7 +6007,8 @@ err: if (xattrs) dict_unref (xattrs); - DHT_STACK_DESTROY (lookup_frame); + if (lookup_frame) + DHT_STACK_DESTROY (lookup_frame); return 0; } |