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): portreserve-0.0.4-8.fc15
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.