summaryrefslogtreecommitdiff
path: root/psycopg/connection_int.c
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2009-04-07 09:25:05 +0200
committerFederico Di Gregorio <fog@initd.org>2009-04-07 09:25:05 +0200
commitbd19e3148cb7e65d40eff70c95ce4320b8c98bfa (patch)
tree96e086c042874bb6df871957cef1824836a98e54 /psycopg/connection_int.c
parent16c2a8fc81ca610eaeee0738a19116190fdf3e07 (diff)
downloadpsycopg2-bd19e3148cb7e65d40eff70c95ce4320b8c98bfa.tar.gz
Removed calls to PyMem_XXX when not holding the GIL
Diffstat (limited to 'psycopg/connection_int.c')
-rw-r--r--psycopg/connection_int.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/psycopg/connection_int.c b/psycopg/connection_int.c
index 0ea2c23..f4f7280 100644
--- a/psycopg/connection_int.c
+++ b/psycopg/connection_int.c
@@ -54,7 +54,7 @@ conn_notice_callback(void *args, const char *message)
else {
struct connectionObject_notice *notice =
(struct connectionObject_notice *)
- PyMem_Malloc(sizeof(struct connectionObject_notice));
+ malloc(sizeof(struct connectionObject_notice));
notice->message = strdup(message);
notice->next = self->notice_pending;
self->notice_pending = notice;
@@ -99,7 +99,7 @@ conn_notice_clean(connectionObject *self)
tmp = notice;
notice = notice->next;
free(tmp->message);
- PyMem_Free(tmp);
+ free(tmp);
}
self->notice_pending = NULL;