RT106x web service heap size issue.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

RT106x web service heap size issue.

684 次查看
StephenYeh
Contributor III

Hi Sir

Would you have any idea how to release the heap size after web service?

 

BRs.

0 项奖励
回复
1 回复

648 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @StephenYeh ,

   When you apply for the heap size, after you use it, you can free it.

  Take an example for the heap apply and release:

int main() {
  int a;
  int *p;
  p = (int *)malloc(sizeof(int));
  free(p);

  return 0;
}

So, if you want to release the heap size  after web service, you can use free to release it.

 

Wish it helps you!

Best Regards,

Kerry

0 项奖励
回复