Fix a 0byte allocation and then memory leak when num_plugins == 0 -- reported by valgrind
Changed paths: