test(){
  calloc
}

void main(){
  test();
}

上記のように関数内でcallocを使った場合freeした方がいいんでしょうか?
それともstatic変数のように自動的に開放されるのでしょうか?