wg: Fix a mismerge
df55485085 fixed a leak that I had initially fixed in a11009dccb.
Fixes: a11009dccb