• Teodora's avatar
    Fix the memory leakage in the E2SM-KPM RAN Function for REPORT style 4 · 6423b604
    Teodora authored
    1. Allocate memory for the ue_id and ue_info_list arrays on the stack.
    Explanation:
       Every granularity period, the program passes through the fp_match_cond_type,
       then through match_s_nssai_test_cond_type function pointers. Based on the node type,
       the function used calloc() for these arrays.
       => the longer a connection with an E2SM-KPM xApp was, the more memory leakage occured.
    2. If matched UEs > 0, only free the memory of ue_id content after each
       Indication Message was sent.
    6423b604
ran_func_kpm.c 22.3 KB