thouis / numpy-trac-migration

numpy Trac to github issues migration
2 stars 3 forks source link

Memory leak in concatenate -- Patch is attached (Trac #2195) #5985

Open numpy-gitbot opened 11 years ago

numpy-gitbot commented 11 years ago

Original ticket http://projects.scipy.org/numpy/ticket/2195 on 2012-07-31 by trac user cianci, assigned to unknown.

A temporary array is created with PyArray_malloc, but not released (with PyArray_free) after use.

Parent 26fed25e7f040564e7be4f82d7cd8a8fcc8fa287

Attached patch merely inserts the necessary call to free, in both the success and failure cases.

numpy-gitbot commented 11 years ago

Attachment added by trac user cianci on 2012-07-31: 0001-Fix-memory-leak-in-concatenate.patch