像这样:const void * test = sqlite3_column_blob(stat, 1); 我可以删除或删除[]测试吗?
最佳答案
The pointers returned are valid until a type conversion occurs or until sqlite3_step() or sqlite3_reset() or sqlite3_finalize() is called. The memory space used to hold strings and BLOBs is freed automatically. Do not pass the pointers returned by sqlite3_column_blob() into sqlite3_free().
关于c - 从 sqlite3_column_blob() 方法获取的指针是否需要删除?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/325158/