Looks to me that there is a bigger issue here. What happens if the cvar gets changed after plugin_cfg() and before plugin_end()? Probably nothing major but that doesn't make it good code. You should check to see if the array is valid, if it's valid, destroy it instead of relying on the cvar.
I'm guessing you can simply check if(g_a_IP) instead of checking the cvar.