kbd-2.0.4-covscan-fixes.patch 444 B

123456789101112
  1. diff -up kbd-2.3.0/src/libkfont/kdmapop.c.orig kbd-2.3.0/src/libkfont/kdmapop.c
  2. --- kbd-2.3.0/src/libkfont/kdmapop.c.orig 2020-04-27 17:53:01.000000000 +0200
  3. +++ kbd-2.3.0/src/libkfont/kdmapop.c 2020-07-16 09:06:45.246742724 +0200
  4. @@ -166,6 +166,7 @@ kfont_get_unicodemap(struct kfont_contex
  5. if (ioctl(fd, GIO_UNIMAP, &ud)) {
  6. KFONT_ERR(ctx, "ioctl(GIO_UNIMAP): %m");
  7. + free(ud.entries);
  8. return -1;
  9. }
  10. if (ct != ud.entry_ct)