Skip to content
Commit e0b2166c authored by Bryce Harrington's avatar Bryce Harrington Committed by Derek Foreman
Browse files

scanner: Close input resource when done to prevent leak



Addresses this error reported by Denis Denisov:

  [src/scanner.c:1415]: (error) Resource leak: input

Signed-off-by: default avatarBryce Harrington <bryce@osg.samsung.com>

v2: Also close input for other exit points in main.
Signed-off-by: default avatarBryce Harrington <bryce@osg.samsung.com>
Reviewed-by: default avatarJonas Ådahl <jadahl@gmail.com>
Acked-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: default avatarDavid FORT <contact@hardening-consulting.com>
parent d20a0b87
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment