shaharhoch@google.com has uploaded this change for review.

View Change

export_mgr: Fix gsh_refstr memory leak in update_export_metadata_metric

gsh_refstr_dup() already initializes path_label with a reference count
of 1. Calling gsh_refstr_get(path_label) when constructing the
export_path metric label increments the reference count to 2, while
only a single gsh_refstr_put(path_label) is called before returning,
leaking path_label on every export insertion.

Change-Id: Ib16057a390c47cf6df61d4891c8118ae8b82f96f
Signed-off-by: Shahar Hochma <shaharhoch@google.com>
---
M src/support/export_mgr.c
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/44/1254144/1

To view, visit change 1254144. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Ib16057a390c47cf6df61d4891c8118ae8b82f96f
Gerrit-Change-Number: 1254144
Gerrit-PatchSet: 1
Gerrit-Owner: shaharhoch@google.com