Bug 1660404 - Conditional freeing of string after returning from dict_set_dynstr function
Summary: Conditional freeing of string after returning from dict_set_dynstr function
Keywords:
Status: CLOSED DEFERRED
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: 2018-12-18 09:42 UTC by Bhumika Goyal
Modified: 2019-07-05 12:06 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-05 12:06:03 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Bhumika Goyal 2018-12-18 09:42:40 UTC
Description of problem:

Free the string depending on the ret value of dict_set_dynstr. We need to check if ret value from dict_set_dynstr is -EINVAL. We need to free the string only if this case is satisfied.
Some usage analysis of the string obviously needs to be done around the code before doing the above change.


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