diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2010-09-14 09:27:14 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-14 08:15:56 -0700 |
commit | c55cc2d5362a607692beac96a34add2e79a9ad44 (patch) | |
tree | c1f5afd5aac488c28b729063e27c59e5c9bca8aa /xlators/mgmt/glusterd/src/glusterd3_1-mops.c | |
parent | a9cbdd2916ab6851d108833e30536c02bf502f17 (diff) |
compare op_errstr before freeing
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 1598 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1598
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd3_1-mops.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd3_1-mops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd3_1-mops.c b/xlators/mgmt/glusterd/src/glusterd3_1-mops.c index 9bc05ec78..f0d7931f9 100644 --- a/xlators/mgmt/glusterd/src/glusterd3_1-mops.c +++ b/xlators/mgmt/glusterd/src/glusterd3_1-mops.c @@ -1324,7 +1324,7 @@ out: if (!ret) req->rpc_err = SUCCESS; } - if (op_errstr) + if (op_errstr && (strcmp (op_errstr, ""))) GF_FREE (op_errstr); if (!ret) gf_log ("", GF_LOG_WARNING, "Returning %d", ret); |