Fix memory leak when setting up priorities; reported by Alexander Drozdov Backport from Libevent 2.0 commit 1c927b7