1 /*
2  * Copyright (c) 2013-2015 Wind River Systems, Inc.
3  * Copyright (c) 2016-2020 Intel Corporation.
4  *
5  * SPDX-License-Identifier: Apache-2.0
6  */
7 
8 /**
9  * @file
10  * @brief Measure time
11  *
12  */
13 #include <zephyr/kernel.h>
14 #include <ksched.h>
15 
16 #include "footprint.h"
17 
run_heap_malloc_free(void)18 void run_heap_malloc_free(void)
19 {
20 	void *allocated_mem = k_malloc(10);
21 
22 	if (allocated_mem == NULL) {
23 		printk("\n Malloc failed\n");
24 		return;
25 	}
26 
27 	k_free(allocated_mem);
28 }
29