| Summary: | Possible problems found by static analysis of code | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jiri Popelka <jpopelka> | ||||
| Component: | portreserve | Assignee: | Tim Waugh <twaugh> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 15 | CC: | twaugh | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | portreserve-0.0.5-2.fc14 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 718176 (view as bug list) | Environment: | |||||
| Last Closed: | 2011-07-04 18:51:05 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 718176 | ||||||
| Attachments: |
|
||||||
|
Description
Jiri Popelka
2011-05-13 15:45:06 UTC
Created attachment 498794 [details]
small memory leak
Error: RESOURCE_LEAK:
portreserve-0.0.4/src/portreserve.c:244: alloc_fn: Calling allocation function "malloc".
portreserve-0.0.4/src/portreserve.c:244: var_assign: Assigning: "cfgfile" = storage returned from "malloc(strlen(dir) + 255UL + 1UL)".
portreserve-0.0.4/src/portreserve.c:245: var_assign: Assigning: "cfgf" = "cfgfile".
portreserve-0.0.4/src/portreserve.c:251: noescape: Variable "cfgfile" is not freed or pointed-to in function "strcpy".
portreserve-0.0.4/src/portreserve.c:254: leaked_storage: Variable "cfgf" going out of scope leaks the storage it points to.
portreserve-0.0.4/src/portreserve.c:254: leaked_storage: Variable "cfgfile" going out of scope leaks the storage it points to.
portreserve-0.0.4/src/portreserve.c:260: noescape: Variable "cfgf" is not freed or pointed-to in function "strcpy".
portreserve-0.0.4/src/portreserve.c:261: noescape: Variable "cfgfile" is not freed or pointed-to in function "reserve".
portreserve-0.0.4/src/portreserve.c:120:22: noescape: "reserve" does not free or save its pointer parameter "file".
portreserve-0.0.4/src/portreserve.c:314: leaked_storage: Variable "cfgf" going out of scope leaks the storage it points to.
portreserve-0.0.4/src/portreserve.c:314: leaked_storage: Variable "cfgfile" going out of scope leaks the storage it points to.
Thanks, applied upstream. portreserve-0.0.5-1.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/portreserve-0.0.5-1.fc15 portreserve-0.0.5-1.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/portreserve-0.0.5-1.fc14 Package portreserve-0.0.5-1.fc14: * should fix your issue, * was pushed to the Fedora 14 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing portreserve-0.0.5-1.fc14' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/portreserve-0.0.5-1.fc14 then log in and leave karma (feedback). portreserve-0.0.5-2.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. portreserve-0.0.5-2.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. |