Fix Coverity Scan CID 300388 (Variable destinationInfoList going out of scope leaks the storage it points to.)
This commit is contained in:
@@ -8074,6 +8074,9 @@ rrc_eNB_process_SidelinkUEInformation(
|
|||||||
|
|
||||||
//generate RRC Reconfiguration
|
//generate RRC Reconfiguration
|
||||||
rrc_eNB_generate_RRCConnectionReconfiguration_Sidelink(ctxt_pP, ue_context_pP, destinationInfoList, 0);
|
rrc_eNB_generate_RRCConnectionReconfiguration_Sidelink(ctxt_pP, ue_context_pP, destinationInfoList, 0);
|
||||||
|
|
||||||
|
free(destinationInfoList);
|
||||||
|
destinationInfoList = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -8092,6 +8095,9 @@ rrc_eNB_process_SidelinkUEInformation(
|
|||||||
|
|
||||||
//generate RRC Reconfiguration
|
//generate RRC Reconfiguration
|
||||||
rrc_eNB_generate_RRCConnectionReconfiguration_Sidelink(ctxt_pP, ue_context_pP, destinationInfoList, 0);
|
rrc_eNB_generate_RRCConnectionReconfiguration_Sidelink(ctxt_pP, ue_context_pP, destinationInfoList, 0);
|
||||||
|
|
||||||
|
free(destinationInfoList);
|
||||||
|
destinationInfoList = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -8113,6 +8119,9 @@ rrc_eNB_process_SidelinkUEInformation(
|
|||||||
|
|
||||||
//generate RRC Reconfiguration
|
//generate RRC Reconfiguration
|
||||||
rrc_eNB_generate_RRCConnectionReconfiguration_Sidelink(ctxt_pP, ue_context_pP, destinationInfoList, 0);
|
rrc_eNB_generate_RRCConnectionReconfiguration_Sidelink(ctxt_pP, ue_context_pP, destinationInfoList, 0);
|
||||||
|
|
||||||
|
free(destinationInfoList);
|
||||||
|
destinationInfoList = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -8134,6 +8143,9 @@ rrc_eNB_process_SidelinkUEInformation(
|
|||||||
|
|
||||||
//generate RRC Reconfiguration
|
//generate RRC Reconfiguration
|
||||||
rrc_eNB_generate_RRCConnectionReconfiguration_Sidelink(ctxt_pP, ue_context_pP, destinationInfoList, 0);
|
rrc_eNB_generate_RRCConnectionReconfiguration_Sidelink(ctxt_pP, ue_context_pP, destinationInfoList, 0);
|
||||||
|
|
||||||
|
free(destinationInfoList);
|
||||||
|
destinationInfoList = NULL;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user