Bug 704570 - Possible problems found by static analysis of code
Summary: Possible problems found by static analysis of code
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: tree
Version: 15
Hardware: All
OS: All
low
low
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-13 15:53 UTC by Jiri Popelka
Modified: 2011-05-20 15:14 UTC (History)
1 user (show)

Fixed In Version: tree-1.5.3-4.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-20 15:14:41 UTC
Type: ---


Attachments (Terms of Use)
resource_leak (359 bytes, patch)
2011-05-13 15:54 UTC, Jiri Popelka
no flags Details | Diff

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.


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