packet: remove aligned_alloc
This commit is contained in:
parent
baf2a2c42c
commit
954d98046c
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ pktbuf_alloc(const void *data, size_t size)
|
|||
pb->pb_size = size;
|
||||
|
||||
if(size > 0) {
|
||||
pb->pb_data = aligned_alloc(PKTBUF_DATA_ALIGN, size + 8);
|
||||
pb->pb_data = malloc(size);
|
||||
if(data != NULL)
|
||||
memcpy(pb->pb_data, data, size);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue