diff --git a/src/util/bridge.c b/src/util/bridge.c index 7d0caaef7d..da62c5ec6d 100644 --- a/src/util/bridge.c +++ b/src/util/bridge.c @@ -538,6 +538,8 @@ brAddTap(brControl *ctl, goto error; if (tapfd) *tapfd = fd; + else + close(fd); return 0; error: