Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1771365

Summary: libglusterfs/dict.c : memory leaks
Product: [Community] GlusterFS Reporter: Kotresh HR <khiremat>
Component: coreAssignee: bugs <bugs>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-12 14:09:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kotresh HR 2019-11-12 09:12:48 UTC
Description of problem:

data_t *data = get_new_data();
if (!data) {
return NULL;
}
data->len = gf_asprintf(&data->data, "%" PRIu32, value);
if (-1 == data->len) {
gf_msg_debug("dict", 0, "asprintf failed");
return NULL; // data Resource leak
}
Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Worker Ant 2019-11-12 09:15:46 UTC
REVIEW: https://review.gluster.org/23698 (libglusterfs/dict.c: Fix memory leaks.) posted (#2) for review on master by Kotresh HR

Comment 2 Worker Ant 2019-11-12 14:09:29 UTC
REVIEW: https://review.gluster.org/23698 (libglusterfs/dict.c: Fix memory leaks.) merged (#3) on master by Amar Tumballi