From ee0ec564ef62422d962697f0801f7ec36986c761 Mon Sep 17 00:00:00 2001 From: Alejandro Leal Conejos Date: Tue, 26 Oct 2021 16:31:52 +0200 Subject: [PATCH] Fixes coverity 373333 --- srsepc/src/mbms-gw/mbms-gw.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srsepc/src/mbms-gw/mbms-gw.cc b/srsepc/src/mbms-gw/mbms-gw.cc index 6e7eafdb2..1715489b0 100644 --- a/srsepc/src/mbms-gw/mbms-gw.cc +++ b/srsepc/src/mbms-gw/mbms-gw.cc @@ -157,6 +157,8 @@ int mbms_gw::init_sgi_mb_if(mbms_gw_args_t* args) if (not srsran::net_utils::set_sockaddr(addr, args->sgi_mb_if_addr.c_str(), 0)) { m_logger.error("Invalid sgi_mb_if_addr: %s", args->sgi_mb_if_addr.c_str()); srsran::console("Invalid sgi_mb_if_addr: %s\n", args->sgi_mb_if_addr.c_str()); + close(m_sgi_mb_if); + close(sgi_mb_sock); return SRSRAN_ERROR_CANT_START; }