summaryrefslogtreecommitdiffstats
path: root/drm/common/ReadWriteUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'drm/common/ReadWriteUtils.cpp')
-rw-r--r--drm/common/ReadWriteUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drm/common/ReadWriteUtils.cpp b/drm/common/ReadWriteUtils.cpp
index fd17e98..d696f16 100644
--- a/drm/common/ReadWriteUtils.cpp
+++ b/drm/common/ReadWriteUtils.cpp
@@ -47,7 +47,7 @@ String8 ReadWriteUtils::readBytes(const String8& filePath) {
if (length == read(fd, (void*) bytes, length)) {
string.append(bytes, length);
}
- delete bytes;
+ delete[] bytes;
}
fclose(file);
}