From 211521f039bb5c883ef444577b5962bad9e18be1 Mon Sep 17 00:00:00 2001 From: Mohit Agrawal Date: Fri, 30 Nov 2018 16:07:39 +0530 Subject: core: Resolve dict_leak at the time of destroying graph Problem: In gluster code some of the places it call's get_new_dict to create a dictionary without taking reference so at the time of dict_unref it has become a leak Solution: To resolve the same call dict_new instead of get_new_dict updates bz#1650403 Change-Id: I3ccbbf5af07079a4fa09aad2cd0458c8625b2f06 Signed-off-by: Mohit Agrawal --- api/src/glfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/src') diff --git a/api/src/glfs.c b/api/src/glfs.c index f9d0937f2b3..b741f6e8b46 100644 --- a/api/src/glfs.c +++ b/api/src/glfs.c @@ -197,7 +197,7 @@ create_master(struct glfs *fs) master->ctx = fs->ctx; master->private = fs; - master->options = get_new_dict(); + master->options = dict_new(); if (!master->options) goto err; @@ -1549,7 +1549,7 @@ GFAPI_SYMVER_PUBLIC_DEFAULT(glfs_upcall_inode_get_oldpstat, 3.7.16); struct glfs_object * pub_glfs_upcall_lease_get_object(struct glfs_upcall_lease *arg) { - return arg->object; + return arg->object; } GFAPI_SYMVER_PUBLIC_DEFAULT(glfs_upcall_lease_get_object, 4.1.6); -- cgit