diff options
author | Brian Foster <bfoster@redhat.com> | 2012-04-12 15:46:37 -0400 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-04-12 14:21:39 -0700 |
commit | 918678dc8e5a8cac1ec2dea7f8d2b11a186f38eb (patch) | |
tree | de469586e1dc97cbd0a3bfefe54cce466b23f465 /libglusterfs/src | |
parent | 6a995ab3300a5ee0ee79a4d7d75281a79deec96e (diff) |
md-cache: fix dict memory leak in mdc_inode_xatt_update
We currently either dict_ref() or dict_copy() into mdc->xattr.
The double dict_ref() call path is obvious. Alternatively,
dict_copy() does not ref the dict in the situation where it
creates a new dict, but we only call dict_copy() in this
context when we already have a dict, which should mean the
extra ref is unnecessary.
BUG: 801582
Change-Id: I72e3f1a16f942f04752c033812d13d50ee7c2c2c
Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-on: http://review.gluster.com/3138
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'libglusterfs/src')
0 files changed, 0 insertions, 0 deletions