[PATCH] PostgreSQL. Do not crash on multiple primClear calls

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] PostgreSQL. Do not crash on multiple primClear calls

Holger Freyther
Hi Paolo,

this fixes an issue that if I call release and the finalizer will be run
afterwards that GSt crashes in a double free inside the PQclear call.


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

0001-dbd-postgresql-Handle-multiple-calls-to-primClear.patch (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] PostgreSQL. Do not crash on multiple primClear calls

Paolo Bonzini-2
On 04/11/2011 10:19 AM, Holger Hans Peter Freyther wrote:
>
>  From d48cb22e2e470a9d1fd0f05ce0acb20c5cdc0ff3 Mon Sep 17 00:00:00 2001
> From: Holger Hans Peter Freyther<[hidden email]>
> Date: Mon, 11 Apr 2011 10:04:17 +0200
> Subject: [PATCH] dbd-postgresql: Handle multiple calls to primClear
>
> Calling ResultSet>>#release will invoke PQclear and
> remove the object from the list of finalizers but the
> finalizer might still be executed.

Applied, thanks!

Paolo

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk