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 --- libglusterfs/src/glusterfs/dict.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'libglusterfs/src/glusterfs/dict.h') diff --git a/libglusterfs/src/glusterfs/dict.h b/libglusterfs/src/glusterfs/dict.h index 161362bb5cb..52b833fd559 100644 --- a/libglusterfs/src/glusterfs/dict.h +++ b/libglusterfs/src/glusterfs/dict.h @@ -270,8 +270,6 @@ int dict_remove_foreach_fn(dict_t *d, char *k, data_t *v, void *tmp); dict_t * dict_copy(dict_t *this, dict_t *new); -dict_t * -get_new_dict(void); int dict_keys_join(void *value, int size, dict_t *dict, int (*filter_fn)(char *key)); -- cgit