Edit

kc3-lang/libxkbcommon/src/xkbcomp

Branch :

  • Show log

    Commit

  • Author : Peter Hutterer
    Date : 2021-03-18 12:22:34
    Hash : 95e29079
    Message : xkbcomp: plug a potential memory leak libxkbcommon-1.0.3/src/xkbcomp/ast-build.c:526: leaked_storage: Variable "file" going out of scope leaks the storage it points to. Where we exit the loop early, we don't release the various allocated memory. Make this patch more obvious my moving the declaration for those into the loop as well, this way we know that they aren't used outside the loop anywhere. Found by coverity Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>