diff options
Diffstat (limited to 'xlators/protocol')
-rw-r--r-- | xlators/protocol/client/src/client3_1-fops.c | 3 | ||||
-rw-r--r-- | xlators/protocol/server/src/server3_1-fops.c | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/xlators/protocol/client/src/client3_1-fops.c b/xlators/protocol/client/src/client3_1-fops.c index be4322f2b..3289da369 100644 --- a/xlators/protocol/client/src/client3_1-fops.c +++ b/xlators/protocol/client/src/client3_1-fops.c @@ -2186,6 +2186,9 @@ out: if (rsp.xdata.xdata_val) free (rsp.xdata.xdata_val); + if (rsp.flock.lk_owner.lk_owner_val) + free (rsp.flock.lk_owner.lk_owner_val); + if (xdata) dict_unref (xdata); diff --git a/xlators/protocol/server/src/server3_1-fops.c b/xlators/protocol/server/src/server3_1-fops.c index 914d5160d..0e252b5c3 100644 --- a/xlators/protocol/server/src/server3_1-fops.c +++ b/xlators/protocol/server/src/server3_1-fops.c @@ -4866,6 +4866,9 @@ out: if (args.xdata.xdata_val) free (args.xdata.xdata_val); + if (args.flock.lk_owner.lk_owner_val) + free (args.flock.lk_owner.lk_owner_val); + if (op_errno) req->rpc_err = GARBAGE_ARGS; @@ -4951,6 +4954,9 @@ out: if (args.xdata.xdata_val) free (args.xdata.xdata_val); + if (args.flock.lk_owner.lk_owner_val) + free (args.flock.lk_owner.lk_owner_val); + if (op_errno) req->rpc_err = GARBAGE_ARGS; @@ -5420,6 +5426,9 @@ out: if (args.xdata.xdata_val) free (args.xdata.xdata_val); + if (args.flock.lk_owner.lk_owner_val) + free (args.flock.lk_owner.lk_owner_val); + if (op_errno) req->rpc_err = GARBAGE_ARGS; |