aboutsummaryrefslogtreecommitdiff
path: root/handler.c
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-07 22:01:13 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-07-07 22:04:01 +0200
commit960a35a02fa8c98036e73be8fee9ea3f1c0888e9 (patch)
tree7d9f1195ec1ccf9ba8ea9d683c39c0beb40fbeab /handler.c
parent74b7f7a902d9916dddb07d6adb26c63e765a6349 (diff)
downloadslcl-960a35a02fa8c98036e73be8fee9ea3f1c0888e9.tar.gz
main.c: Fix use-after-free on failed search_fn
When search_fn fails, it must free `r` before `results`, as the former is assigned based on the latter - otherwise, it would lead to undefined behaviour. So far, only memory allocation errors would make search_fn to fail.
Diffstat (limited to 'handler.c')
0 files changed, 0 insertions, 0 deletions