Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3ebb48d1 authored by George Burgess IV's avatar George Burgess IV
Browse files

LayerStats: Fix a use-after-free

std::string::c_str returns memory that's freed when the string dies. So,
this method should be returning the string, rather than a pointer to
it's freshly-deleted contents.

Caught by our static analyzer.

Bug: None
Test: Builds

Change-Id: I3dce7b60c6cfb4e3bfbd6c0dd6fe30dfe7f4313c
parent cd1ce760
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment