Hide Forgot
Memory leak observed in the quota translator. Valgrind showed this allocation to be leaking: 5,251,054 (13,110,528 direct, 32,140,526 indirect) bytes in 273,136 blocks are definitely lost in loss record 84 of 84 ==8118== at 0x4C1FB32: calloc (vg_replace_malloc.c:279) ==8118== by 0x4E2EC00: get_new_dict_full (dict.c:68) ==8118== by 0x4E2ECFE: get_new_dict (dict.c:93) ==8118== by 0x620F649: gf_quota_cache_sync (quota.c:897) ==8118== by 0x620F7EB: quota_release (quota.c:918) ==8118== by 0x4E54064: fd_destroy (fd.c:453) ==8118== by 0x4E541AE: fd_unref (fd.c:488) ==8118== by 0x4E5397E: gf_fd_put (fd.c:307) ==8118== by 0x6A4E4C3: server_release (server-protocol.c:4032) ==8118== by 0x6A596DA: protocol_server_interpret (server-protocol.c:7511) ==8118== by 0x6A5A06E: protocol_server_pollin (server-protocol.c:7764) ==8118== by 0x6A5A27D: notify (server-protocol.c:7820)
PATCH: http://patches.gluster.com/patch/2694 in release-2.0 (features/quota: Fix memory leak while syncing disk usage.)
Also commit for 3.0.3
*** Bug 541 has been marked as a duplicate of this bug. ***
PATCH: http://patches.gluster.com/patch/2795 in master (features/quota: Fix memory leak while syncing disk usage.)
PATCH: http://patches.gluster.com/patch/2796 in master (features/quota: Changes in arguments in STACK_UNWINDs for most FOPs.)
PATCH: http://patches.gluster.com/patch/2799 in release-3.0 (features/quota: Fix memory leak while syncing disk usage.)
PATCH: http://patches.gluster.com/patch/2800 in release-3.0 (features/quota: Changes in arguments in STACK_UNWINDs for most FOPs.)
PATCH: http://patches.gluster.com/patch/2878 in master (extras: Add script to be used before using quota translator.)
PATCH: http://patches.gluster.com/patch/2877 in release-3.0 (extras: Add script to be used before using quota translator.)