Bug 1660404

Summary: Conditional freeing of string after returning from dict_set_dynstr function
Product: [Community] GlusterFS Reporter: Bhumika Goyal <bgoyal>
Component: coreAssignee: bugs <bugs>
Status: CLOSED DEFERRED QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: atumball, bugs, pasik
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-07-05 12:06:03 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 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.