Bug 704570

Summary: Possible problems found by static analysis of code
Product: [Fedora] Fedora Reporter: Jiri Popelka <jpopelka>
Component: treeAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 15CC: twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: tree-1.5.3-4.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-20 15:14:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
resource_leak none

Description Jiri Popelka 2011-05-13 15:53:02 UTC
Description of problem:
Static analysis of the code with/without applied patches discovered
some possible problems in the code.


Version-Release number of selected component (if applicable):
tree-1.5.3-3.fc15

Comment 1 Jiri Popelka 2011-05-13 15:54:19 UTC
Created attachment 498799 [details]
resource_leak

Error: RESOURCE_LEAK:
tree-1.5.3/tree.c:640: alloc_fn: Calling allocation function "malloc".
tree-1.5.3/tree.c:640: var_assign: Assigning: "path" =  storage returned from "malloc(pathsize = 4096L)".
tree-1.5.3/tree.c:644: leaked_storage: Variable "path" going out of scope leaks the storage it points to.