diff -up rpm-4.16.1.3/tools/hashtab.c.orig rpm-4.16.1.3/tools/hashtab.c --- rpm-4.16.1.3/tools/hashtab.c.orig 2021-07-01 14:51:24.576237269 +0200 +++ rpm-4.16.1.3/tools/hashtab.c 2021-07-01 15:02:42.005754968 +0200 @@ -292,7 +292,8 @@ htab_expand (htab) } while (p < olimit); - free (oentries); + if (oentries != htab->entries) + free(oentries); return 1; }