mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141970
@ -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