Fix Coverity Scan CID 21694 (Variable quantityConfig going out of scope leaks the storage it points to.)
This commit is contained in:
@@ -3425,6 +3425,18 @@ void rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt_t
|
|||||||
|
|
||||||
free(Sparams);
|
free(Sparams);
|
||||||
Sparams = NULL;
|
Sparams = NULL;
|
||||||
|
|
||||||
|
free(quantityConfig->quantityConfigEUTRA->filterCoefficientRSRP);
|
||||||
|
quantityConfig->quantityConfigEUTRA->filterCoefficientRSRP = NULL;
|
||||||
|
|
||||||
|
free(quantityConfig->quantityConfigEUTRA->filterCoefficientRSRQ);
|
||||||
|
quantityConfig->quantityConfigEUTRA->filterCoefficientRSRQ = NULL;
|
||||||
|
|
||||||
|
free(quantityConfig->quantityConfigEUTRA);
|
||||||
|
quantityConfig->quantityConfigEUTRA = NULL;
|
||||||
|
|
||||||
|
free(quantityConfig);
|
||||||
|
quantityConfig = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user