affs: fix potential memory leak when parsing option 'prefix'