Commit 4852dcb1 authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 300388 (Variable destinationInfoList going out of scope...

Fix Coverity Scan CID 300388 (Variable destinationInfoList going out of scope leaks the storage it points to.)
parent 937c3626
...@@ -8074,6 +8074,9 @@ rrc_eNB_process_SidelinkUEInformation( ...@@ -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( ...@@ -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( ...@@ -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( ...@@ -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;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment