-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid "immortal" dynamic memory allocations.
Statically allocating the storage and then lazily constructing the objects (in onces) avoids global constructors and the false positives (thanks, Valgrind) about memory leaks at program termination. Fixes #28, #190, #377, #387. Change-Id: I5b3eaf5d743a4723212c5a7461c280d99a0384ac Reviewed-on: https://code-review.googlesource.com/c/re2/+/60850 Reviewed-by: Perry Lorier <[email protected]> Reviewed-by: Paul Wankadia <[email protected]>
- Loading branch information
Showing
2 changed files
with
57 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters