summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-rebalance.c
diff options
context:
space:
mode:
authorRavishankar N <ravishankar@redhat.com>2020-09-01 11:36:42 +0530
committerXavi Hernandez <xhernandez@redhat.com>2020-09-04 13:43:30 +0000
commit079f7a7d8a2bd85070c1da4dde2452ca82a1cdbb (patch)
tree1fc29dad8fca7510e1eec4a8f39bc1344fac89f5 /xlators/mgmt/glusterd/src/glusterd-rebalance.c
parentcede859c7312ad09bae90f6c0f16a751f830905b (diff)
libglusterfs: fix dict leak
Problem: gf_rev_dns_lookup_cached() allocated struct dnscache->dict if it was null but the freeing was left to the caller. Fix: Moved dict allocation and freeing into corresponding init and fini routines so that its easier for the caller to avoid such leaks. Updates: #1000 Change-Id: I90d6a6f85ca2dd4fe0ab461177aaa9ac9c1fbcf9 Signed-off-by: Ravishankar N <ravishankar@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-rebalance.c')
0 files changed, 0 insertions, 0 deletions