newしたらdelete
getしたらrelease
mallocしたらfree
openしたらclose

すべてチェックするしかないですな。
むしろなぜ対にしてコードを書かないのか謎。あっC#だからか。