Skip to content

Commit ea50280

Browse files
ckennellycopybara-github
authored andcommitted
Include deallocated caller-provided size in delete hooks.
As allocations may come from unsized free or delete as well, we indicate these via std::nullopt. PiperOrigin-RevId: 780282346 Change-Id: I123b5a0541bdf26e44686de79821dbb1326c4cf6
1 parent a09b217 commit ea50280

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

absl/base/internal/low_level_alloc.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include "absl/base/internal/low_level_alloc.h"
2121

22+
#include <optional>
2223
#include <type_traits>
2324

2425
#include "absl/base/call_once.h"

0 commit comments

Comments
 (0)