apps/testcase/utc_taskmgr : Initialize local variable before using
Local variable can have trash value.
If reply_msg.msg has trash value, tc tries to free, because reply_msg.msg is not NULL, even if it is not needed to free.
@@ -79,6 +79,9 @@ static void sync_test_cb(tm_msg_t *info)
{
tm_msg_t reply_msg;
+ reply_msg.msg_size = 0;
+ reply_msg.msg = NULL;
+
if (strncmp(info->msg, TM_SYNC_SEND_MSG, info->msg_size) == 0) {
reply_msg.msg = malloc(strlen(TM_SYNC_RECV_MSG) + 1);
if (reply_msg.msg != NULL) {
