diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2022-03-27 15:48:16 -0700 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-03-27 16:43:05 -0700 |
commit | ecc0459f763ea4f0294a9ba00e9050aba7fd3907 (patch) | |
tree | 858e3bbee40cffc75a94ad55966e506d18f33be7 /Base/root | |
parent | 4674577d80e9b11f7311b1ad88e1ec45a0313591 (diff) | |
download | serenity-ecc0459f763ea4f0294a9ba00e9050aba7fd3907.zip |
LibC: Fix potential double free in ttyname_r_for_directory
If we break out of the loop before we attempt to allocate again,
then we double free the memory pointed to by `name_path`.
Found by Static Analysis: Sonar Cloud
Diffstat (limited to 'Base/root')
0 files changed, 0 insertions, 0 deletions