diff --git a/connected.c b/connected.c index 6718503649..7e26976832 100644 --- a/connected.c +++ b/connected.c @@ -76,6 +76,8 @@ int check_connected(oid_iterate_fn fn, void *cb_data, promisor_pack_found: ; } while ((oid = fn(cb_data)) != NULL); + if (opt->err_fd) + close(opt->err_fd); return 0; }