Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
After reading data into a buffer the reading_generator_next function calls invokes the underlying yajl parsing routine, which might return successfully or not. There was a memory leak in the latter case, since the "view" Py_buffer object was not being released before checking for NULL returns and returning NULL ourselves. This commit fixes the bug by ensuring we release the "view" object before any returns, ensuring memory isn't leaked. This was originally reported in #97. Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
- Loading branch information