diff options
author | Mohit Agrawal <moagrawal@redhat.com> | 2018-11-30 16:07:39 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-01-14 04:01:54 +0000 |
commit | 211521f039bb5c883ef444577b5962bad9e18be1 (patch) | |
tree | 82c748d0a3217ebb7b3bb7ce997b11f6ec0b65d1 /libglusterfs/src/graph.c | |
parent | 8216ed2171789c8b6c6dc1e44cc171c89b1c063d (diff) | |
download | glusterfs-211521f039bb5c883ef444577b5962bad9e18be1.tar.gz glusterfs-211521f039bb5c883ef444577b5962bad9e18be1.tar.xz glusterfs-211521f039bb5c883ef444577b5962bad9e18be1.zip |
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 <moagrawal@redhat.com>
Diffstat (limited to 'libglusterfs/src/graph.c')
-rw-r--r-- | libglusterfs/src/graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c index 6b50cdbfdd..2dad92a5c5 100644 --- a/libglusterfs/src/graph.c +++ b/libglusterfs/src/graph.c @@ -181,7 +181,7 @@ glusterfs_graph_insert(glusterfs_graph_t *graph, glusterfs_ctx_t *ctx, ixl->ctx = ctx; ixl->graph = graph; - ixl->options = get_new_dict(); + ixl->options = dict_new(); if (!ixl->options) goto err; |