diff options
author | des <des@FreeBSD.org> | 2005-02-16 12:46:46 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2005-02-16 12:46:46 +0000 |
commit | ae4586a78eda715abcce1a3d4b50d3bec55ff5db (patch) | |
tree | f7620b536a68f41ecd2f0f6a7b76d513d5626a5e /lib | |
parent | dfb7ee3811a6dd2a85a6a0896e88835f32be0a89 (diff) | |
download | FreeBSD-src-ae4586a78eda715abcce1a3d4b50d3bec55ff5db.zip FreeBSD-src-ae4586a78eda715abcce1a3d4b50d3bec55ff5db.tar.gz |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libfetch/common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index f7700cf..ba0d711 100644 --- a/lib/libfetch/common.c +++ b/lib/libfetch/common.c @@ -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); } |