Commit 78c1b9c2 authored by Jamie Smith's avatar Jamie Smith

Whoops, change delete to delete[]

parent 6191d95a
Pipeline #124463 passed with stage
......@@ -3044,7 +3044,7 @@ bool SystemTools::ReadSymlink(const std::string& symlink, std::string& target)
if (!GetFinalPathNameByHandleW(fileHandle, pathBuffer, bufferSize,
FILE_NAME_NORMALIZED)) {
CloseHandle(fileHandle);
delete pathBuffer;
delete[] pathBuffer;
return false;
}
......@@ -3057,7 +3057,7 @@ bool SystemTools::ReadSymlink(const std::string& symlink, std::string& target)
}
CloseHandle(fileHandle);
delete pathBuffer;
delete[] pathBuffer;
return true;
}
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment