# HG changeset patch # User iive # Date 1019408179 0 # Node ID 4c6b5ab80de25caba38c2141cb9792ed018bfa9b # Parent cfb787b821a060f9f6d8436c8845ff8a841be009 memory leak(off by 1 bug) diff -r cfb787b821a0 -r 4c6b5ab80de2 libao2/ao_plugin.c --- a/libao2/ao_plugin.c Sun Apr 21 16:42:08 2002 +0000 +++ b/libao2/ao_plugin.c Sun Apr 21 16:56:19 2002 +0000 @@ -71,7 +71,7 @@ // Is this the last iteration or just another plugin if(cfg[cnt]=='\0'){ - ao_plugin_local_data.plugins=malloc((i+1)*sizeof(ao_plugin_functions_t*)); + ao_plugin_local_data.plugins=malloc((i+2)*sizeof(ao_plugin_functions_t*)); if(ao_plugin_local_data.plugins){ ao_plugin_local_data.plugins[i+1]=NULL; // Find the plugin matching the cfg string name