PrintModifierMapping: stop leaking the map returned by XGetKeyboardMapping

Resolves issue reported by Oracle Parfait static analyzer:

Error: Memory leak
   Memory leak [memory-leak] (CWE 401):
      Memory leak of pointer pointer allocated with XGetKeyboardMapping(...)
        at line 251 of app/xmodmap/exec.c in function 'PrintModifierMapping'.
          pointer allocated at line 222 with XGetKeyboardMapping(...)

Signed-off-by: Alan Coopersmith <>
6 jobs for parfait in 1 minute and 54 seconds (queued for 1 second)