diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-07-19 11:42:33 +0530 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-07-19 22:30:32 -0700 |
commit | fd60df8798b74ea2a9c793798d4ad2ab3fbf9394 (patch) | |
tree | 61b2f115a36a7520353678455def9f6bf5147f0d | |
parent | 3fa71f059daf1ec1e16d80e577dbd5833ba78257 (diff) |
nfs: do not free the constant stringv3.3beta1
Change-Id: Iea3838e09efad5cac789f93148fb941d2f7109b1
BUG: 3039
Reviewed-on: http://review.gluster.com/10
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@gluster.com>
-rw-r--r-- | xlators/nfs/lib/src/rpcsvc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/nfs/lib/src/rpcsvc.c b/xlators/nfs/lib/src/rpcsvc.c index 6e0e020e7..7da04b2f1 100644 --- a/xlators/nfs/lib/src/rpcsvc.c +++ b/xlators/nfs/lib/src/rpcsvc.c @@ -658,10 +658,13 @@ nfs_rpcsvc_volume_allowed (dict_t *options, char *volname) GF_FREE (srchstr); srchstr = globalrule; ret = dict_get_str (options, srchstr, &addrstr); + srchstr = NULL; } else ret = dict_get_str (options, srchstr, &addrstr); out: + if (srchstr != NULL) + GF_FREE (srchstr); return addrstr; } |