mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Dropped unneeded constness on the notice message
That's a strdup result, we 0wn it.
This commit is contained in:
parent
0a7261268b
commit
b326a27774
|
@ -71,7 +71,7 @@ extern HIDDEN PyTypeObject connectionType;
|
|||
|
||||
struct connectionObject_notice {
|
||||
struct connectionObject_notice *next;
|
||||
const char *message;
|
||||
char *message;
|
||||
};
|
||||
|
||||
/* the typedef is forward-declared in psycopg.h */
|
||||
|
|
|
@ -154,7 +154,7 @@ conn_notice_clean(connectionObject *self)
|
|||
while (notice != NULL) {
|
||||
tmp = notice;
|
||||
notice = notice->next;
|
||||
free((void*)tmp->message);
|
||||
free(tmp->message);
|
||||
free(tmp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user