Fix Coverity Scan CID 261458 (Variable message_p going out of scope leaks the storage it points to.)
This commit is contained in:
@@ -1212,6 +1212,7 @@ int s1ap_eNB_handle_paging(uint32_t assoc_id,
|
|||||||
} else {
|
} else {
|
||||||
/* invalid paging_p->cnDomain */
|
/* invalid paging_p->cnDomain */
|
||||||
S1AP_ERROR("[SCTP %d] Received Paging : cnDomain(%ld) is unknown\n", assoc_id, ie->value.choice.CNDomain);
|
S1AP_ERROR("[SCTP %d] Received Paging : cnDomain(%ld) is unknown\n", assoc_id, ie->value.choice.CNDomain);
|
||||||
|
itti_free (ITTI_MSG_ORIGIN_ID(message_p), message_p);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user