From ae4586a78eda715abcce1a3d4b50d3bec55ff5db Mon Sep 17 00:00:00 2001 From: des Date: Wed, 16 Feb 2005 12:46:46 +0000 Subject: 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 --- lib/libfetch/common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libfetch/common.c') 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); } -- cgit v1.1