On Thu, Aug 4, 2011 at 11:06 AM, Harsh Prateek Bora <ha...@linux.vnet.ibm.com> wrote: > +static int local_ioc_getversion(FsContext *ctx, V9fsPath *path, uint64_t > *st_gen) > +{ > + int mode = 0600; > + int fd; > + > + fd = local_open(ctx, path, mode); > + if(fd < 0) { > + return fd; > + } > + return ioctl(fd, FS_IOC_GETVERSION, st_gen);
fd is leaked. Stefan