Fixes a memory leak when iterating driver list.

Not gonna lie, I'm not too fond of the linked list API.