Re: "double free" segfault back in pyscopg2 2.5 - Mailing list psycopg

From Daniele Varrazzo
Subject Re: "double free" segfault back in pyscopg2 2.5
Date
Msg-id 1371742941.3159.10.camel@risotto.smithersbet.com
Whole thread Raw
In response to "double free" segfault back in pyscopg2 2.5  ("Gangadharan S.A." <gangadharan@gmail.com>)
Responses Re: "double free" segfault back in pyscopg2 2.5  ("Gangadharan S.A." <gangadharan@gmail.com>)
Re: "double free" segfault back in pyscopg2 2.5  ("Gangadharan S.A." <gangadharan@gmail.com>)
List psycopg
On Thu, 2013-06-20 at 19:34 +0530, Gangadharan S.A. wrote:

> The fix would be to call conn_close after untracking the object in
> connection_type.c:connection_dealloc().

Pushed correction at
https://github.com/dvarrazzo/psycopg/commit/889b1d826e9cf0ecbc9af938bad72937592af5e4

Is this enough to consider the issue fixed?

I've checked other destructors and we untrack the object before any
other operation in all the objects.

Thanks


--
Daniele



psycopg by date:

Previous
From: Daniele Varrazzo
Date:
Subject: Re: "double free" segfault back in pyscopg2 2.5
Next
From: "Gangadharan S.A."
Date:
Subject: Re: "double free" segfault back in pyscopg2 2.5