diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-04-16 09:45:49 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-16 10:51:48 -0700 |
commit | 26dc794e6586ca911678fc80e831e18cd99973fa (patch) | |
tree | 35cf1781c15e94869c39d1b2a36c61f3f68d8d13 /xlators/features/marker/src/marker-quota-helper.c | |
parent | 3e873600920a180960e6730a531ba7a5912f5543 (diff) |
marker: avoid memleak by unrefing dict, fd and local
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2784 ([glusterfs-3.2.0qa13]: memleak in marker)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2784
Diffstat (limited to 'xlators/features/marker/src/marker-quota-helper.c')
-rw-r--r-- | xlators/features/marker/src/marker-quota-helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/features/marker/src/marker-quota-helper.c b/xlators/features/marker/src/marker-quota-helper.c index d7afd40a656..fba2cdd3f5d 100644 --- a/xlators/features/marker/src/marker-quota-helper.c +++ b/xlators/features/marker/src/marker-quota-helper.c @@ -362,6 +362,9 @@ quota_local_unref (xlator_t *this, quota_local_t *local) if (local->ref > 0) goto out; + if (local->fd != NULL) + fd_unref (local->fd); + loc_wipe (&local->loc); loc_wipe (&local->parent_loc); |