Added result check for calls to itti_free.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4782 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
winckel
2013-12-20 10:41:27 +00:00
parent 7a2fcccc26
commit 5a6de28863
16 changed files with 126 additions and 65 deletions
+8 -4
View File
@@ -468,7 +468,8 @@ void *l2l1_task(void *args_p) {
#if defined(ENABLE_ITTI)
MessageDef *message_p = NULL;
MessageDef *message_p = NULL;
int result;
itti_mark_task_ready (TASK_L2L1);
@@ -476,7 +477,8 @@ void *l2l1_task(void *args_p) {
/* Wait for the initialize message */
do {
if (message_p != NULL) {
itti_free (ITTI_MSG_ORIGIN_ID(message_p), message_p);
result = itti_free (ITTI_MSG_ORIGIN_ID(message_p), message_p);
AssertFatal (result == EXIT_SUCCESS, "Failed to free memory (%d)!\n", result);
}
itti_receive_msg (TASK_L2L1, &message_p);
@@ -501,7 +503,8 @@ void *l2l1_task(void *args_p) {
break;
}
} while (ITTI_MSG_ID(message_p) != INITIALIZE_MESSAGE);
itti_free (ITTI_MSG_ORIGIN_ID(message_p), message_p);
result = itti_free (ITTI_MSG_ORIGIN_ID(message_p), message_p);
AssertFatal (result == EXIT_SUCCESS, "Failed to free memory (%d)!\n", result);
}
#endif
@@ -535,7 +538,8 @@ void *l2l1_task(void *args_p) {
break;
}
itti_free (ITTI_MSG_ORIGIN_ID(message_p), message_p);
result = itti_free (ITTI_MSG_ORIGIN_ID(message_p), message_p);
AssertFatal (result == EXIT_SUCCESS, "Failed to free memory (%d)!\n", result);
}
} while(message_p != NULL);
#endif