octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Small cppcheck fixes


From: Ben Abbott
Subject: Re: Small cppcheck fixes
Date: Sun, 16 Jan 2011 12:07:04 -0500

On Jan 16, 2011, at 11:55 AM, Jordi Gutiérrez Hermoso wrote:

> I just ran cppcheck on the Octave sources around changeset
> 11479:746609dd54fd, and among other problems it found the ones patched
> here:
> 
>     http://hg.savannah.gnu.org/hgweb/octave/rev/50a7935f2512
> 
> The others were all about uninitialised variables, and there's one
> about an obscure memory leak in gl2ps which is very unlikely to be a
> problem in practice (I believe with Linux's default allocation, it's
> in fact impossible for the leak to happen, for example). I attach the
> output for general interest. It would be interesting to try a newer
> version of cppcheck. I used the latest release which is 1.44, but
> there's been work in its VCS.
> 
> What should we do about the gl2ps memory leak? Patch it here and
> submit the patch to the author, or send the patch to the author and
> wait for him to approve it?
> 
> - Jordi G. H.
> <octave-cppcheck>

In the past we've sent the patch to the author and then updated Octave's 
sources after gl2ps was changed upstream. 

Ben



reply via email to

[Prev in Thread] Current Thread [Next in Thread]