deallocate
常見(jiàn)例句
- Allocate and deallocate memory space as needed.
需要時(shí)分配和收廻存儲(chǔ)空間。 - Deallocate - Static member to release an IRP allocated with Allocate.
靜態(tài)釋放一個(gè)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ù)庫(kù)引擎確保將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.
你能利用這個(gè)機(jī)會(huì)做一些清理工作。例如:釋放內(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è)計(jì)更加高傚,因爲(wèi)避免了在每一次狀態(tài)轉(zhuǎn)換的時(shí)候申請(qǐng)和釋放內(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.
我想也是,不過(guò)我覺(jué)得這種方式不好吧,內(nèi)存在函數(shù)內(nèi)部分配,然後要求調(diào)用者釋放,這不好吧,有好的解決方法嗎? 返回 deallocate