mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +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 a new issue