Re: ncl-6.1.2 bug report #2

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Wed May 15 2013 - 14:20:34 MDT

Hi David,

Much thanks for these bugs reports; I'll check them out and get the corrections into the code base.

Thanks again!
Rick

On May 15, 2013, at 10:39 AM, David Binderman <dcb314@hotmail.com> wrote:

> Hello there,
>
> I also ran the static analyser "cppcheck" over the source code of ncl-6.1.2
>
> It said
>
> [xresources.c:298]: (error) Pointer to local array variable returned.
>
> Looks like broken code to me.
>
> I also tried compiling ncl with a recent snapshot of the gcc compiler.
> It said
>
> ictrans_mem.c:91:22: warning: attempt to free a non-heap object 'Args' [-Wfree-nonheap-object]
>
> Source code is
>
> if (Args[unit]) free((Voidptr) Args);
>
> Maybe
>
> if (Args[unit]) free(Args[unit]);
>
> was intended.
>
>
>
> Regards
>
> David Binderman
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed May 15 14:20:43 2013

This archive was generated by hypermail 2.1.8 : Thu May 30 2013 - 11:38:10 MDT