we must explicitely release the memory where the filehandle is held since librpc...
[tridge/dbench.git] / libnfs.c
index d4536d6b210a9d9c5fd37be2466276b1e2ba5a8d..232e45579262411280630963b0aafdf52a5a5d25 100644 (file)
--- a/libnfs.c
+++ b/libnfs.c
@@ -571,6 +571,8 @@ nfsstat3 nfsio_lookup(struct nfsio *nfsio, const char *name, fattr3 *attributes)
                        LOOKUP3res->LOOKUP3res_u.resok.object.data.data_val,
                        LOOKUP3res->LOOKUP3res_u.resok.object.data.data_len);
 
+       free(LOOKUP3res->LOOKUP3res_u.resok.object.data.data_val);
+
        if (attributes) {
                memcpy(attributes, &LOOKUP3res->LOOKUP3res_u.resok.obj_attributes.post_op_attr_u.attributes, sizeof(fattr3));
        }