cppcheck warnings

Alexander Voigt <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
Dear Dillo developers,

I just ran cppcheck on the Dillo source and got some (pedantic)
warning messages.  I'd like to list them here just in case it might be
something serious.


$ cd dillo/src/
$ cppcheck *
[ui.cc:1067]: (error) Possible null pointer dereference: StatusBar - otherwise it is redundant to check if StatusBar is null at line 1079


$ cd dillo/dpi/
$ cppcheck *
[downloads.cc:512]: (error) Common realloc mistake: "log_text" nulled but not freed upon failure
[file.c:549]: (error) Resource leak: fd


$ cd dillo/lout/
$ cppcheck *
[misc.cc:194]: (error) Common realloc mistake: "bits" nulled but not freed upon failure


Kind regards,
Alexander Voigt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.