X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=blobdiff_plain;f=fapi_5g%2Fsource%2Fnr5g_fapi.c;fp=fapi_5g%2Fsource%2Fnr5g_fapi.c;h=2329ad3289665c7f5c4dea091e269a1afadfd288;hp=78133e31baadc2ea0a83582837b2e1bf0e603906;hb=892daba4c616407f16506415d5a69549519ef11d;hpb=76b4495d593ccf45d712db1a3ec96fa9d2d8f5f5 diff --git a/fapi_5g/source/nr5g_fapi.c b/fapi_5g/source/nr5g_fapi.c index 78133e3..2329ad3 100644 --- a/fapi_5g/source/nr5g_fapi.c +++ b/fapi_5g/source/nr5g_fapi.c @@ -1,6 +1,6 @@ /****************************************************************************** * -* Copyright (c) 2019 Intel. +* Copyright (c) 2021 Intel. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -52,9 +52,14 @@ int main( nr5g_fapi_cmgr((void *)config); nr5g_fapi_dpdk_wait(config); - pthread_attr_destroy(&config->phy2mac_thread_info.thread_attr); - pthread_attr_destroy(&config->mac2phy_thread_info.thread_attr); - pthread_attr_destroy(&config->urllc_thread_info.thread_attr); + pthread_attr_destroy(&config->phy2mac_thread_params.thread_info.thread_attr); + pthread_attr_destroy(&config->mac2phy_thread_params.thread_info.thread_attr); + if (config->is_urllc_enabled) + { + pthread_attr_destroy(&config->urllc_phy2mac_thread_params.thread_info.thread_attr); + pthread_attr_destroy(&config->urllc_mac2phy_thread_params.thread_info.thread_attr); + } + free(config); return 0; }