diff --git a/src/venus/fs.c b/src/venus/fs.c index caf7ce35fa..a0dfa9a26f 100644 --- a/src/venus/fs.c +++ b/src/venus/fs.c @@ -3351,10 +3351,10 @@ GetPrefCmd(struct cmd_syndesc *as, void *arock) } in->offset = out->next_offset; - } while (out->next_offset > 0); - - if (blob.out != space) - free(blob.out); + if (blob.out != space) { + free(blob.out); + } + } while (in->offset > 0); return 0; }