Skip to content

Ran into a segfault and some memory leaks. Fixed them and added a decorator. - #1

Open
otherwiseguy wants to merge 3 commits into
ajdavis:masterfrom
otherwiseguy:master
Open

Ran into a segfault and some memory leaks. Fixed them and added a decorator.#1
otherwiseguy wants to merge 3 commits into
ajdavis:masterfrom
otherwiseguy:master

Conversation

@otherwiseguy

Copy link
Copy Markdown

I tried not to change any behavior, but went ahead and refactored a little to reduce the indentation level while also handling the Py_DECREFs for the newly returned references.

This also properly decrements PyObjects that are returned as new
references and refactors a bit to reduce the idention level.
Also adds --log-file option and hacks around an issue where passing
globals/locals to execfile breaks scripts that also parse arguments.
I'll probably add an option later once I understand the original
use case better.
@ajdavis

ajdavis commented May 26, 2014

Copy link
Copy Markdown
Owner

Hi, I'm sorry this took me so long to notice your pull request. Can you please split it into individual PRs that handle one thing at at time? (On your end you'll want to move the commits to separate branches.)

Also, can you tell me how to reproduce the segfault?

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants