diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-11-14 23:56:10 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-11-14 23:56:10 +0000 |
commit | d692bad8cda28858c113563722c7d66bd4d9f73b (patch) | |
tree | da205f5c1fb5727e2ce44752bfce43e48b5d15b6 /scipy/f2py/src/fortranobject.c | |
parent | 51508b2a55b9f96105dfa03d84a3bbc0341efc1a (diff) | |
download | numpy-d692bad8cda28858c113563722c7d66bd4d9f73b.tar.gz |
Closed a few more leaks.
Diffstat (limited to 'scipy/f2py/src/fortranobject.c')
-rw-r--r-- | scipy/f2py/src/fortranobject.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scipy/f2py/src/fortranobject.c b/scipy/f2py/src/fortranobject.c index 05f712603..15168303a 100644 --- a/scipy/f2py/src/fortranobject.c +++ b/scipy/f2py/src/fortranobject.c @@ -629,7 +629,8 @@ PyArrayObject* array_from_pyobj(const int type_num, F2PY_REPORT_ON_ARRAY_COPY_FROMANY; arr = (PyArrayObject *) \ PyArray_FromAny(obj,&typecode, 0,0, - ((intent & F2PY_INTENT_C)?CARRAY_FLAGS:FARRAY_FLAGS)); + ((intent & F2PY_INTENT_C)?CARRAY_FLAGS:FARRAY_FLAGS) \ + | FORCECAST ); if (arr==NULL) return NULL; if (check_and_fix_dimensions(arr,rank,dims)) |