Bug 1771365 - libglusterfs/dict.c : memory leaks
Summary: libglusterfs/dict.c : memory leaks
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: core
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: bugs@gluster.org
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-12 09:12 UTC by Kotresh HR
Modified: 2019-11-12 14:09 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-11-12 14:09:29 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Gluster.org Gerrit 23698 0 None Merged libglusterfs/dict.c: Fix memory leaks. 2019-11-12 14:09:28 UTC

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


Note You need to log in before you can comment on or make changes to this bug.