Memory leak with valgrind, where can I free my pointer

前端 未结 0 1978
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-13 04:44

in this portion I have a memory leak of 5 blocks which seems to match my loop turns so I tried adding free(newcw); in the while loop but I get a segmentation fault 11 error

相关标签:
回答
  • 消灭零回复
提交回复
热议问题