lib/plist_fetch.c: fix a memleak in error path.