diff options
| -rw-r--r-- | libglusterfs/src/syncop.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/libglusterfs/src/syncop.c b/libglusterfs/src/syncop.c index c0a85b2830c..cc25cd58815 100644 --- a/libglusterfs/src/syncop.c +++ b/libglusterfs/src/syncop.c @@ -2361,8 +2361,10 @@ syncop_inodelk (xlator_t *subvol, const char *volume, loc_t *loc, int32_t cmd,          if (xdata_rsp)                  *xdata_rsp = args.xdata; -        else -                dict_unref (args.xdata); +        else { +                if (args.xdata) +                        dict_unref (args.xdata); +        }          if (args.op_ret < 0)                  return -args.op_errno;  | 
