Fix probable but rare memory leak
This commit is contained in:
parent
3f9d162129
commit
e863227099
@ -306,6 +306,8 @@ static int real_write_all(connection_t *cn)
|
|||||||
|
|
||||||
switch (ret) {
|
switch (ret) {
|
||||||
case WRITE_ERROR:
|
case WRITE_ERROR:
|
||||||
|
/* we might as well free(line) here */
|
||||||
|
list_add_first(cn->outgoing, line);
|
||||||
return 1;
|
return 1;
|
||||||
case WRITE_KEEP:
|
case WRITE_KEEP:
|
||||||
/* interrupted or not ready */
|
/* interrupted or not ready */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user