Merge pull request #12 from arutk/secure_alloc
Secure alloc/free in env
This commit is contained in:
@@ -55,6 +55,16 @@ static inline void env_vfree(const void *ptr)
|
||||
cas_vfree(ptr);
|
||||
}
|
||||
|
||||
static inline void *env_secure_alloc(size_t size)
|
||||
{
|
||||
return env_vmalloc(size);
|
||||
}
|
||||
|
||||
static inline void env_secure_free(const void *ptr, size_t size)
|
||||
{
|
||||
env_vfree(ptr);
|
||||
}
|
||||
|
||||
/* *** ALLOCATOR *** */
|
||||
|
||||
typedef struct _env_allocator env_allocator;
|
||||
|
2
ocf
2
ocf
Submodule ocf updated: d4e929140e...0b098ddb80
Reference in New Issue
Block a user