Commit fa5bf3b3 authored by Robert Schmidt's avatar Robert Schmidt

Use posix_memalign() for pnf_p7_t creation

parent 4b98742d
...@@ -21,9 +21,10 @@ ...@@ -21,9 +21,10 @@
nfapi_pnf_p7_config_t* nfapi_pnf_p7_config_create() nfapi_pnf_p7_config_t* nfapi_pnf_p7_config_create()
{ {
pnf_p7_t* _this = (pnf_p7_t*)calloc(1, sizeof(pnf_p7_t)); pnf_p7_t* _this = NULL;
int rc = posix_memalign(&_this, 32, sizeof(pnf_p7_t));
if(_this == 0) if(_this == NULL || rc != 0)
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment