Your message dated Wed, 23 Sep 2009 10:35:03 +0000
with message-id <[email protected]>
and subject line Bug#542352: fixed in cppcheck 1.37-1
has caused the Debian Bug report #542352,
regarding False positive "Resource leak"
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
542352: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542352
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: cppcheck
Version: 1.35-1
Severity: normal
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
when running cppcheck over my code, I noticed that it erroneously marks
following code as resource leak:
void create_lock(const char *name, const void *lock_data, const size_t
lock_data_len)
{
FILE *fd;
fd = fopen(name, "w");
test_result(fd != NULL);
test_result(fwrite(lock_data, 1, lock_data_len, fd) == lock_data_len);
test_result(fclose(fd) == 0);
}
I get following error:
[gammu/tests/locking.c:21]: (error) Resource leak: fd
The test_result is just macro that checks if the result is and throws a
test error otherwise, so the fclose does happen every time.
- --
Michal Čihař | http://cihar.com | http://blog.cihar.com
- -- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages cppcheck depends on:
ii libc6 2.9-25 GNU C Library: Shared libraries
ii libgcc1 1:4.4.1-2 GCC support library
ii libstdc++6 4.4.1-2 The GNU Standard C++ Library v3
cppcheck recommends no packages.
cppcheck suggests no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkqLrp8ACgkQ3DVS6DbnVgTjdACfU92WSlP2uncBBQ5hvYA0aaac
/ZoAoIIQg+ypimH2MUP16DMh7EK13UxV
=kmj2
-----END PGP SIGNATURE-----
--- End Message ---
--- Begin Message ---
Source: cppcheck
Source-Version: 1.37-1
We believe that the bug you reported is fixed in the latest version of
cppcheck, which is due to be installed in the Debian FTP archive:
cppcheck_1.37-1.diff.gz
to pool/main/c/cppcheck/cppcheck_1.37-1.diff.gz
cppcheck_1.37-1.dsc
to pool/main/c/cppcheck/cppcheck_1.37-1.dsc
cppcheck_1.37-1_i386.deb
to pool/main/c/cppcheck/cppcheck_1.37-1_i386.deb
cppcheck_1.37.orig.tar.gz
to pool/main/c/cppcheck/cppcheck_1.37.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Reijo Tomperi <[email protected]> (supplier of updated cppcheck
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Tue, 22 Sep 2009 23:10:56 +0300
Source: cppcheck
Binary: cppcheck
Architecture: source i386
Version: 1.37-1
Distribution: unstable
Urgency: low
Maintainer: Reijo Tomperi <[email protected]>
Changed-By: Reijo Tomperi <[email protected]>
Description:
cppcheck - Tool for static C/C++ code analysis
Closes: 542352 544591
Changes:
cppcheck (1.37-1) unstable; urgency=low
.
* New upstream release
* control: Standars-version changed 3.8.1 -> 3.8.2
* control: Long description, unusal -> unusual
* control: Long description, removed the "We recommend" sentence.
* False positive with memset fixed. Closes: #544591
* False positive with resource leak fixed. Closes: #542352
Checksums-Sha1:
11e93af06557327569e85150aceba1954e14d17a 1677 cppcheck_1.37-1.dsc
5277ba2e220314e93e1306867985e1931d2ba9cc 433600 cppcheck_1.37.orig.tar.gz
2dd96b8dec60a069644bdcec423f835e2b04d706 3739 cppcheck_1.37-1.diff.gz
38c4c577a645bf9db9bc57912cfca73f2752e26b 265546 cppcheck_1.37-1_i386.deb
Checksums-Sha256:
5f9cb8be5222e44f66ad7189f662d3c9b60346b1cd953750614096d754b5b17f 1677
cppcheck_1.37-1.dsc
156a85114234e374f0bdb598cf47e476e737ba60f71bb100a6a72b566cecced3 433600
cppcheck_1.37.orig.tar.gz
a0546756e0330c683daf3b2ebb0475c5cc2dca4ff3e68b51431212b03be87235 3739
cppcheck_1.37-1.diff.gz
a450431b74baf072cae173fe3b75b5c23df26474aea1b0902372d2fbd796a4f8 265546
cppcheck_1.37-1_i386.deb
Files:
ddf9ac3f1e6349029f29e8ca08e27bde 1677 devel optional cppcheck_1.37-1.dsc
d353457790fef4044af20f267ecda5b9 433600 devel optional
cppcheck_1.37.orig.tar.gz
bf3da82f58179a75118fba89a07b90d0 3739 devel optional cppcheck_1.37-1.diff.gz
c78e8366722074d8a3f8dd3e78cf2211 265546 devel optional cppcheck_1.37-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAEBAgAGBQJKufJVAAoJEBxXDIkOS9CrHdsP/jZoEvpQ/A23uu4rAaxBh3ho
b+1zpyzLnUy1PmYziRkbvVGzXAlb4BGR0n3LEFlVOjHu1UVpYsqkmivo2OOiSkxK
BQpdILLrMxUO+jmtXI22lQgqxDdATHawsqpsP9VEOxlpA0TT+ZbOAe1ZaLMdLwTl
fOCxv1FVIdpMhPkN4Eo1UcjPFaipMUbEq7fCXeeSoQqO9oHyMCOzlArkWYkvMpix
j2MGyLR9NZDJhDnOB6Pa6BiqgeJ1hq+zTusK6mBeOMCJ9chd6gLdsE0gwQieSjV0
zc1YIMM7F/6WWA0O388nR87udwcjzlRKIMzFE6pVhJxiwgXR0PwEwmefBplY1PEf
rTiZEq8J6vmZdXnZmKzZWEta2JK1HV/4mW0vXurfWzvOfkwwsI9Av0rZEHnnWLxl
tX2YWsS8CVUQhj8DlQ0Q+PbuSkDpkvqzfIEXHxIzO+0wX6B1YI61CjjR46QS+qsm
muT3I4344n1OqiMHNdEnv2VNFEOtvP7C7JhWXniCnn/ELkbeLV/ICtL9x/aYfq5T
huwn8V4s4uedxDkT8mr4eOCXshPqR9hEblPlPsuy6fYfgcEVu6qi4i5Jc646tiST
0TPCyB/LiZQCP2cLjviWAqBUl6uOu71aFBpPz6qsw/JzRHyfL8BwLFC7/or1+XWb
VPcSBqtIl/QyV3kBBi3+
=fCVS
-----END PGP SIGNATURE-----
--- End Message ---