summary refs log tree commit diff stats
path: root/lib/std/stackframes.nim
diff options
context:
space:
mode:
author握猫猫 <164346864@qq.com>2023-10-23 15:11:13 +0800
committerGitHub <noreply@github.com>2023-10-23 09:11:13 +0200
commit562a5fb8f9df8985be2543e5581252e449d6ae09 (patch)
tree662f0d7fd974f71bc2d08bc70697ed7f2a465440 /lib/std/stackframes.nim
parentca577dbab12cb7a9a73ca8d39ce03f568bade2bb (diff)
downloadNim-562a5fb8f9df8985be2543e5581252e449d6ae09.tar.gz
fix use after free (#22854)
1. `freeAddrInfo` is called prematurely, the variable `myAddr` is still
in use
2. Use defer syntax to ensure that `freeAddrInfo` is also called on
exceptions
Diffstat (limited to 'lib/std/stackframes.nim')
0 files changed, 0 insertions, 0 deletions