mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-14 15:38:35 -07:00
Furi: remove aligned_free. Use free instead.
This commit is contained in:
@@ -42,10 +42,6 @@ void* aligned_malloc(size_t size, size_t alignment) {
|
||||
return pvPortAllocAligned(size, alignment);
|
||||
}
|
||||
|
||||
void aligned_free(void* p) {
|
||||
vPortFree(p);
|
||||
}
|
||||
|
||||
size_t memmgr_get_free_heap(void) {
|
||||
return xPortGetFreeHeapSize();
|
||||
}
|
||||
|
||||
@@ -36,20 +36,13 @@ size_t memmgr_get_total_heap(void);
|
||||
size_t memmgr_get_minimum_free_heap(void);
|
||||
|
||||
/**
|
||||
* An aligned version of malloc, used when you need to get the aligned space on the heap
|
||||
* Freeing the received address is performed ONLY through the aligned_free function
|
||||
* An aligned version of malloc, used when you need to get the aligned space on the heap.
|
||||
* @param size
|
||||
* @param alignment
|
||||
* @return void*
|
||||
*/
|
||||
void* aligned_malloc(size_t size, size_t alignment);
|
||||
|
||||
/**
|
||||
* Freed space obtained through the aligned_malloc function
|
||||
* @param p pointer to result of aligned_malloc
|
||||
*/
|
||||
void aligned_free(void* p);
|
||||
|
||||
/**
|
||||
* @brief Allocate memory from the auxiliary memory pool. That memory can't be freed.
|
||||
*
|
||||
@@ -59,7 +52,7 @@ void aligned_free(void* p);
|
||||
void* memmgr_aux_pool_alloc(size_t size);
|
||||
|
||||
/**
|
||||
* @brief Get the auxiliary poll free memory size
|
||||
* @brief Get the auxiliary pool free memory size
|
||||
*
|
||||
* @return size_t
|
||||
*/
|
||||
|
||||
@@ -713,7 +713,7 @@ static bool elf_relocate_fast(ELFFile* elf, ELFSection* s) {
|
||||
}
|
||||
}
|
||||
|
||||
aligned_free(s->fast_rel->data);
|
||||
free(s->fast_rel->data);
|
||||
free(s->fast_rel);
|
||||
s->fast_rel = NULL;
|
||||
|
||||
@@ -780,10 +780,10 @@ void elf_file_free(ELFFile* elf) {
|
||||
ELFSectionDict_next(it)) {
|
||||
const ELFSectionDict_itref_t* itref = ELFSectionDict_cref(it);
|
||||
if(itref->value.data) {
|
||||
aligned_free(itref->value.data);
|
||||
free(itref->value.data);
|
||||
}
|
||||
if(itref->value.fast_rel) {
|
||||
aligned_free(itref->value.fast_rel->data);
|
||||
free(itref->value.fast_rel->data);
|
||||
free(itref->value.fast_rel);
|
||||
}
|
||||
free((void*)itref->key);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
entry,status,name,type,params
|
||||
Version,+,61.1,,
|
||||
Version,+,62.0,,
|
||||
Header,+,applications/services/bt/bt_service/bt.h,,
|
||||
Header,+,applications/services/cli/cli.h,,
|
||||
Header,+,applications/services/cli/cli_vcp.h,,
|
||||
@@ -515,7 +515,6 @@ Function,-,acoshf,float,float
|
||||
Function,-,acoshl,long double,long double
|
||||
Function,-,acosl,long double,long double
|
||||
Function,-,aligned_alloc,void*,"size_t, size_t"
|
||||
Function,+,aligned_free,void,void*
|
||||
Function,+,aligned_malloc,void*,"size_t, size_t"
|
||||
Function,-,arc4random,__uint32_t,
|
||||
Function,-,arc4random_buf,void,"void*, size_t"
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
entry,status,name,type,params
|
||||
Version,+,61.1,,
|
||||
Version,+,62.0,,
|
||||
Header,+,applications/drivers/subghz/cc1101_ext/cc1101_ext_interconnect.h,,
|
||||
Header,+,applications/services/bt/bt_service/bt.h,,
|
||||
Header,+,applications/services/cli/cli.h,,
|
||||
@@ -584,7 +584,6 @@ Function,-,acoshf,float,float
|
||||
Function,-,acoshl,long double,long double
|
||||
Function,-,acosl,long double,long double
|
||||
Function,-,aligned_alloc,void*,"size_t, size_t"
|
||||
Function,+,aligned_free,void,void*
|
||||
Function,+,aligned_malloc,void*,"size_t, size_t"
|
||||
Function,-,arc4random,__uint32_t,
|
||||
Function,-,arc4random_buf,void,"void*, size_t"
|
||||
|
||||
|
Reference in New Issue
Block a user