mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-21 04:25:28 -04:00
!949 安全扫描异常场景下data未释放
Merge pull request !949 from leafly2021/master_0419
This commit is contained in:
@@ -139,6 +139,7 @@ bool SurfaceReader::ProcessBuffer(const sptr<SurfaceBuffer> &buf)
|
||||
sptr<PixelMap> pixelMap = new(std::nothrow) PixelMap();
|
||||
if (pixelMap == nullptr) {
|
||||
WLOGFE("create pixelMap failed");
|
||||
free(data);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -155,4 +156,4 @@ bool SurfaceReader::ProcessBuffer(const sptr<SurfaceBuffer> &buf)
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user