deallocate
常見例句
- Allocate and deallocate memory space as needed.
需要時分配和收廻存儲空間。 - Deallocate - Static member to release an IRP allocated with Allocate.
靜態(tài)釋放一個IRP。 - To deallocate an extent, the Database Engine makes sure that the GAM bit is set to 1 and the SGAM bit is set to 0.
若要釋放區(qū),數(shù)據(jù)庫引擎確保將GAM位設(shè)置爲(wèi)1,將SGAM位設(shè)置爲(wèi)0。 - You can use this opportunity to do some cleanup such as deallocate memory and so on.
你能利用這個機(jī)會做一些清理工作。例如:釋放內(nèi)存等等。 - Using singletons makes the design more efficient because they remove the need to allocate and deallocate memory every time a state change is made.
使用單件使得這一設(shè)計更加高傚,因爲(wèi)避免了在每一次狀態(tài)轉(zhuǎn)換的時候申請和釋放內(nèi)存。 - First this is OK.But it has potential possibility to cause memory leak because you should remeber deallocate the memory through the pointer returned.
我想也是,不過我覺得這種方式不好吧,內(nèi)存在函數(shù)內(nèi)部分配,然後要求調(diào)用者釋放,這不好吧,有好的解決方法嗎? 返回 deallocate