diff options
-rw-r--r-- | api/src/glfs-mgmt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/api/src/glfs-mgmt.c b/api/src/glfs-mgmt.c index 1bfebcf2d03..b2728477ef7 100644 --- a/api/src/glfs-mgmt.c +++ b/api/src/glfs-mgmt.c @@ -382,7 +382,7 @@ out: if (rsp.dict.dict_val) free (rsp.dict.dict_val); - if (rsp.op_errstr && *rsp.op_errstr) + if (rsp.op_errstr) free (rsp.op_errstr); gf_msg_debug (frame->this->name, 0, "Returning: %d", ret); @@ -677,6 +677,9 @@ out: if (rsp.spec) free (rsp.spec); + if (rsp.xdata.xdata_val) + free (rsp.xdata.xdata_val); + // Stop if server is running at an unsupported op-version if (ENOTSUP == ret) { gf_msg ("mgmt", GF_LOG_ERROR, ENOTSUP, API_MSG_WRONG_OPVERSION, |