richardphibel / rpms / rpm

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