]> git.saurik.com Git - bison.git/blobdiff - src/symlist.c
named references: fix double free.
[bison.git] / src / symlist.c
index e717c3e1a4775774aa2e47b4005557ffb1f175c4..190d0073a4feb6c94cc873dfbc61e440baeeed77 100644 (file)
@@ -151,8 +151,7 @@ symbol_list_free (symbol_list *list)
   for (node = list; node; node = next)
     {
       next = node->next;
-      if (node->named_ref)
-        named_ref_free (node->named_ref);
+      named_ref_free (node->named_ref);
       free (node);
     }
 }