Fix Coverity Scan CID 21734 (Variable Sparams going out of scope leaks the storage it points to.)

This commit is contained in:
Dong Anyuan
2019-06-20 12:42:42 +09:00
parent b7c04de927
commit 87023eeb6a
+3
View File
@@ -3422,6 +3422,9 @@ void rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt_t
size,
buffer,
PDCP_TRANSMISSION_MODE_CONTROL);
free(Sparams);
Sparams = NULL;
}
//-----------------------------------------------------------------------------