1
0
forked from bip/bip

Fix probable but rare memory leak

This commit is contained in:
Arnaud Cornet 2008-06-01 11:05:22 +02:00
parent 3f9d162129
commit e863227099

View File

@ -306,6 +306,8 @@ static int real_write_all(connection_t *cn)
switch (ret) {
case WRITE_ERROR:
/* we might as well free(line) here */
list_add_first(cn->outgoing, line);
return 1;
case WRITE_KEEP:
/* interrupted or not ready */