]> granicus.if.org Git - onig/commitdiff
fix GlobalNameIDCounter set to 0 in global_callout_name_table_free()
authorK.Kosako <kosako@sofnec.co.jp>
Tue, 27 Feb 2018 00:37:48 +0000 (09:37 +0900)
committerK.Kosako <kosako@sofnec.co.jp>
Tue, 27 Feb 2018 00:37:48 +0000 (09:37 +0900)
src/regparse.c

index 213a1c51fce4d4663f256251703d3d1a9bc6a279..f870b5e84084b4e1c2a6f8ed7e029b0c19f4115c 100644 (file)
@@ -1260,6 +1260,7 @@ global_callout_name_table_free(void)
 
     onig_st_free_table(GlobalCalloutNameTable);
     GlobalCalloutNameTable = 0;
+    CalloutNameIDCounter = 0;
   }
 
   return 0;
@@ -1326,6 +1327,7 @@ global_callout_name_table_free(void)
 
     xfree(GlobalCalloutNameTable);
     GlobalCalloutNameTable = 0;
+    CalloutNameIDCounter = 0;
   }
   return 0;
 }