From b8be0402122ad3d82af33febed9cee92809bfa8d Mon Sep 17 00:00:00 2001 From: gilles <> Date: Fri, 1 Feb 2013 15:22:18 +0000 Subject: [PATCH] fix memleak in imsg_read() when hitting the fd reserve check ok millert@, mikeb@, lteo@ --- src/lib/libutil/imsg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/libutil/imsg.c b/src/lib/libutil/imsg.c index b506297b..e2d0ee5c 100644 --- a/src/lib/libutil/imsg.c +++ b/src/lib/libutil/imsg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imsg.c,v 1.3 2012/12/19 13:37:12 reyk Exp $ */ +/* $OpenBSD: imsg.c,v 1.4 2013/02/01 15:22:18 gilles Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -74,6 +74,7 @@ again: (CMSG_SPACE(sizeof(int))-CMSG_SPACE(0))/sizeof(int) >= getdtablesize()) { errno = EAGAIN; + free(ifd); return (-1); }