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

This commit is contained in:
Dong Anyuan
2019-06-20 12:00:51 +09:00
parent 6986cbdd2a
commit 8fe94b2f2c
+1
View File
@@ -1212,6 +1212,7 @@ int s1ap_eNB_handle_paging(uint32_t assoc_id,
} else {
/* invalid paging_p->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;
}
} else {