Skip to content
Snippets Groups Projects
Commit 42f481b5 authored by DONG Anyuan's avatar DONG Anyuan
Browse files

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

parent d7f9a357
No related branches found
No related tags found
4 merge requests!650Release v1.1.0 Candidate,!620Resolve "Coverity Scan Fix (Week25)",!617Develop: Integration 2019 Week 25,!588Develop nr merge
...@@ -437,6 +437,7 @@ static int _emm_as_data_ind(nas_user_t *user, const emm_as_data_t *msg, int *emm ...@@ -437,6 +437,7 @@ static int _emm_as_data_ind(nas_user_t *user, const emm_as_data_t *msg, int *emm
if (bytes < 0) { if (bytes < 0) {
/* Failed to decrypt the message */ /* Failed to decrypt the message */
*emm_cause = EMM_CAUSE_PROTOCOL_ERROR; *emm_cause = EMM_CAUSE_PROTOCOL_ERROR;
free(plain_msg);
LOG_FUNC_RETURN (bytes); LOG_FUNC_RETURN (bytes);
} else if (header.protocol_discriminator == } else if (header.protocol_discriminator ==
EPS_MOBILITY_MANAGEMENT_MESSAGE) { EPS_MOBILITY_MANAGEMENT_MESSAGE) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment