1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-28 11:44:57 +03:00

Prevent core dump from calling Tcl_DontCallWhenDeleted() with a null

interp pointer.  Per report from Gerhard Hintermayer.
This commit is contained in:
Tom Lane
2003-02-01 00:22:23 +00:00
parent a85d1d5468
commit 3be050da32

View File

@@ -13,7 +13,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclId.c,v 1.37.2.1 2003/02/01 00:07:19 tgl Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclId.c,v 1.37.2.2 2003/02/01 00:22:23 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -273,6 +273,7 @@ PgDelConnectionId(DRIVER_DEL_PROTO)
Tcl_DeleteHashTable(&notifies->notify_hash);
if (notifies->conn_loss_cmd)
ckfree((void *) notifies->conn_loss_cmd);
if (notifies->interp)
Tcl_DontCallWhenDeleted(notifies->interp, PgNotifyInterpDelete,
(ClientData) notifies);
ckfree((void *) notifies);