blob: 5f246017753ae8ce461b2b7d4862f5c9174d0f5f [file] [log] [blame]
/*
* Copyright (c) 2013-2015 Wind River Systems, Inc.
* Copyright (c) 2016-2020 Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @file
* @brief Measure time
*
*/
#include <zephyr/kernel.h>
#include <zephyr/zephyr.h>
#include <ksched.h>
#include "footprint.h"
void run_heap_malloc_free(void)
{
void *allocated_mem = k_malloc(10);
if (allocated_mem == NULL) {
printk("\n Malloc failed\n");
return;
}
k_free(allocated_mem);
}