mgcp-cli: Mark iofd ptr as NULL when freed

Change-Id: Ie3cd7b49c9cd5514f81289ac5ec1ccee14c8509c
This commit is contained in:
Pau Espin Pedrol
2024-12-19 16:28:22 +01:00
parent e17bf77bdd
commit b0fa041a28

View File

@@ -1051,6 +1051,7 @@ void mgcp_client_disconnect(struct mgcp_client *mgcp)
osmo_iofd_txqueue_clear(mgcp->iofd);
LOGPMGW(mgcp, LOGL_INFO, "MGCP association: %s -- closed!\n", osmo_iofd_get_name(mgcp->iofd));
osmo_iofd_free(mgcp->iofd);
mgcp->iofd = NULL;
}
/*! Get the IP-Aaddress of the associated MGW as string.