Fix a memory leak: when freeing the connection structure, don't forget to
free the connection buffer as well. PR: bin/76153 MFC after: 1 week
This commit is contained in:
parent
5e431bae8f
commit
55cf7be1ab
@ -605,6 +605,7 @@ _fetch_close(conn_t *conn)
|
||||
if (--conn->ref > 0)
|
||||
return (0);
|
||||
ret = close(conn->sd);
|
||||
free(conn->buf);
|
||||
free(conn);
|
||||
return (ret);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user