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:
Dag-Erling Smørgrav 2005-02-16 12:46:46 +00:00
parent 5e431bae8f
commit 55cf7be1ab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141970

View file

@ -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);
}