umath static analysis fixes

one significant memory leak (added in 1.9) and a few insignificant ones fixed, found by cpycheck

also fixed the api checksum warnings that occur due to the annotations not printed as repr (with pointer values) instead of str
It might be clearer to do all the INCREFs and then do a DECREF at the end.
(Can nop == 0?)

On Thu, Jun 26, 2014 at 1:33 AM, Charles Harris <notifications@github.com>
wrote:

> In numpy/core/src/umath/umathmodule.c:
>
> > @@ -62,7 +62,9 @@ object_ufunc_type_resolver(PyUFuncObject *ufunc,
> >      }
> >
> >      for (i = 0; i < nop; ++i) {
> > -        Py_INCREF(obj_dtype);
> > +        if (i > 0) {
>
> What's the thinking here?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/numpy/numpy/pull/4826/files#r14220477>.
>



-- 
Nathaniel J. Smith
Postdoctoral researcher - Informatics - University of Edinburgh
http://vorpus.org