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:
@@ -297,7 +297,8 @@ int dummy_tx_buffer[3840*4] __attribute__((aligned(16)));
|
||||
#if defined(ENABLE_ITTI)
|
||||
void *l2l1_task(void *arg)
|
||||
{
|
||||
MessageDef *message_p = NULL;
|
||||
MessageDef *message_p = NULL;
|
||||
int result;
|
||||
|
||||
itti_set_task_real_time(TASK_L2L1);
|
||||
itti_mark_task_ready(TASK_L2L1);
|
||||
@@ -306,7 +307,8 @@ void *l2l1_task(void *arg)
|
||||
/* 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);
|
||||
|
||||
@@ -326,7 +328,8 @@ void *l2l1_task(void *arg)
|
||||
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);
|
||||
}
|
||||
|
||||
do {
|
||||
@@ -348,7 +351,8 @@ void *l2l1_task(void *arg)
|
||||
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(1);
|
||||
|
||||
return NULL;
|
||||
|
||||
@@ -475,6 +475,7 @@ void *emos_thread (void *arg)
|
||||
void *l2l1_task(void *arg)
|
||||
{
|
||||
MessageDef *message_p = NULL;
|
||||
int result;
|
||||
|
||||
itti_set_task_real_time(TASK_L2L1);
|
||||
itti_mark_task_ready(TASK_L2L1);
|
||||
@@ -483,7 +484,8 @@ void *l2l1_task(void *arg)
|
||||
/* 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);
|
||||
|
||||
@@ -503,7 +505,8 @@ void *l2l1_task(void *arg)
|
||||
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);
|
||||
}
|
||||
|
||||
do {
|
||||
@@ -525,7 +528,8 @@ void *l2l1_task(void *arg)
|
||||
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(1);
|
||||
|
||||
return NULL;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user