mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 21:00:33 +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 {
|
||||||
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 */
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user