Fix use-after-free

label was freed at menu_entries.c:263, so do comparison first.
Merge pull request #1128 from mprobinson/drivers-reinit

Fix use-after-free