Dropped unneeded constness on the notice message

That's a strdup result, we 0wn it.
This commit is contained in:
Daniele Varrazzo 2015-06-02 14:24:48 +01:00
parent 0a7261268b
commit b326a27774
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ extern HIDDEN PyTypeObject connectionType;
struct connectionObject_notice { struct connectionObject_notice {
struct connectionObject_notice *next; struct connectionObject_notice *next;
const char *message; char *message;
}; };
/* the typedef is forward-declared in psycopg.h */ /* the typedef is forward-declared in psycopg.h */

View File

@ -154,7 +154,7 @@ conn_notice_clean(connectionObject *self)
while (notice != NULL) { while (notice != NULL) {
tmp = notice; tmp = notice;
notice = notice->next; notice = notice->next;
free((void*)tmp->message); free(tmp->message);
free(tmp); free(tmp);
} }