martijnvanbrummelen / nwipe

nwipe secure disk eraser
GNU General Public License v2.0
801 stars 86 forks source link

Memory leaks - part #2 #54

Closed PartialVolume closed 6 years ago

PartialVolume commented 6 years ago

cppcheck reports the following memory leaks in pass.c

        <error id="memleak" severity="error" msg="Memory leak: b" verbose="Memory leak: b" cwe="401">
            <location file="nwipe/src/pass.c" line="92"/>
        </error>
        <error id="memleak" severity="error" msg="Memory leak: b" verbose="Memory leak: b" cwe="401">
            <location file="nwipe/src/pass.c" line="105"/>
        </error>
        <error id="memleak" severity="error" msg="Memory leak: d" verbose="Memory leak: d" cwe="401">
            <location file="nwipe/src/pass.c" line="105"/>
        </error>
        <error id="memleak" severity="error" msg="Memory leak: b" verbose="Memory leak: b" cwe="401">
            <location file="nwipe/src/pass.c" line="112"/>
        </error>
        <error id="memleak" severity="error" msg="Memory leak: d" verbose="Memory leak: d" cwe="401">
            <location file="nwipe/src/pass.c" line="112"/>
        </error>
        <error id="memleak" severity="error" msg="Memory leak: b" verbose="Memory leak: b" cwe="401">
            <location file="nwipe/src/pass.c" line="274"/>
        </error>
        <error id="memleak" severity="error" msg="Memory leak: b" verbose="Memory leak: b" cwe="401">
            <location file="nwipe/src/pass.c" line="281"/>
        </error>
        <error id="memleak" severity="error" msg="Memory leak: b" verbose="Memory leak: b" cwe="401">
            <location file="nwipe/src/pass.c" line="441"/>
        </error>
PartialVolume commented 6 years ago

Fixed by #46 item 9. commit 33efaa9

martijnvanbrummelen commented 6 years ago

Thanks.

martijnvanbrummelen commented 6 years ago

fixed in 0.25