michal-grzedzicki / rpms / rpm

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