Ticket #271 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Module init code doesn't decref new temps on exception

Reported by: dagss Owned by: dagss
Priority: major Milestone: 0.11.1
Component: Memory Leak Keywords:
Cc:

Description

Consider:

def f():
    raise Exception("Raised from f()")
print "Hello " + f()

Here, some references will be leaked.

Change History

Changed 4 years ago by dagss

  • status changed from new to closed
  • resolution set to fixed
  • component changed from Build System to Memory Leak
  • milestone changed from wishlist to 0.11.1

 http://hg.cython.org/cython-devel/rev/3aa127500ce9

A testcase is some work so that's a follow-up which I won't bother with now (#272).

Note: See TracTickets for help on using tickets.