mirror of
https://github.com/beard7n/bsdports.git
synced 2026-04-10 10:31:20 +02:00
34 lines
806 B
C
34 lines
806 B
C
--- ./src/names.c.orig 2000-12-06 21:41:29.000000000 +0200
|
|
+++ ./src/names.c 2016-12-04 20:40:12.417572000 +0200
|
|
@@ -101,6 +101,21 @@
|
|
return strcmp (first->name, second->name) == 0;
|
|
}
|
|
|
|
+static void
|
|
+alias_freer (void *param)
|
|
+{
|
|
+ RECODE_ALIAS alias = param;
|
|
+ struct recode_surface_list *next = alias->implied_surfaces;
|
|
+ struct recode_surface_list *p;
|
|
+ while (next)
|
|
+ {
|
|
+ p = next->next;
|
|
+ free(next);
|
|
+ next = p;
|
|
+ }
|
|
+ free(alias);
|
|
+}
|
|
+
|
|
bool
|
|
prepare_for_aliases (RECODE_OUTER outer)
|
|
{
|
|
@@ -108,7 +123,7 @@
|
|
outer->number_of_symbols = 0;
|
|
|
|
outer->alias_table
|
|
- = hash_initialize (800, NULL, alias_hasher, alias_comparator, free);
|
|
+ = hash_initialize (800, NULL, alias_hasher, alias_comparator, alias_freer);
|
|
if (!outer->alias_table)
|
|
return false;
|
|
|