| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 00f693b commit c6a558c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -141,8 +141,12 @@ void* DebuggingArrayBufferAllocator::Reallocate(void* data, | |||
| 141 | 141 | Mutex::ScopedLock lock(mutex_); | |
| 142 | 142 | void* ret = NodeArrayBufferAllocator::Reallocate(data, old_size, size); | |
| 143 | 143 | if (ret == nullptr) { | |
| 144 | - if (size == 0) // i.e. equivalent to free(). | ||
| 144 | + if (size == 0) { // i.e. equivalent to free(). | ||
| 145 | + // suppress coverity warning as data is used as key versus as pointer | ||
| 146 | + // in UnregisterPointerInternal | ||
| 147 | + // coverity[pass_freed_arg] | ||
| 145 | 148 | UnregisterPointerInternal(data, old_size); | |
| 149 | + } | ||
| 146 | 150 | return nullptr; | |
| 147 | 151 | } | |
| 148 | 152 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments