double free or corruption (fasttop): 0x080ca728

./sqlite_1: double free or corruption (fasttop): 0x080ca728 *
段錯誤 (核心已轉儲)

多線程在寫入數據庫時,出現錯誤double free or corruption (fasttop): 0x080ca728
原因分析:
1、寫一個測試程序,兩次free指針,出現上述錯誤。
sqlite3_free_table(dbResult);//釋放內存
sqlite3_free_table(dbResult);//釋放內存

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章