kbd/kbd-2.0.4-covscan-fixes.patch

12 lines
444 B
Diff
Raw Normal View History

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