@@ -1285,6 +1285,11 @@
if (FName.startswith("NS") && (FName.find("Insert") != StringRef::npos)) return false;+ // If the call has a callback as an argument, assume the memory+ // can be freed.+ if (Call->hasNonZeroCallbackArg())+ return false;+ // Otherwise, assume that the function does not free memory. // Most system calls, do not free the memory. return true;@@ -1312,6 +1317,11 @@
return false; }+ // If the call has a callback as an argument, assume the memory+ // can be freed.+ if (Call->hasNonZeroCallbackArg())+ return false;+ // Otherwise, assume that the function does not free memory. // Most system calls, do not free the memory. return true;