[Pvfs2-cvs] commit by aching in pvfs2-1/src/proto: PINT-le-bytefield.c

CVS commit program cvs at parl.clemson.edu
Wed Jan 31 00:13:53 EST 2007


Update of /projects/cvsroot/pvfs2-1/src/proto
In directory parlweb1:/tmp/cvs-serv11060/proto

Modified Files:
      Tag: version-lock-actual-branch
	PINT-le-bytefield.c 
Log Message:

I think there is an error with the freeing of reqs here, but I will
leave it as is for now.


Index: PINT-le-bytefield.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/proto/PINT-le-bytefield.c,v
diff -p -u -r1.43.8.1 -r1.43.8.2
--- PINT-le-bytefield.c	27 Sep 2006 21:05:56 -0000	1.43.8.1
+++ PINT-le-bytefield.c	31 Jan 2007 05:13:53 -0000	1.43.8.2
@@ -727,8 +727,13 @@ static void lebf_decode_rel(struct PINT_
 		break;
 
             case PVFS_SERV_LOCK:
-                decode_free(req->u.lock.io_dist);
-                decode_free(req->u.lock.file_req);
+		decode_free(req->u.lock.io_dist);
+		if (req->u.lock.file_req)
+		    decode_free(req->u.lock.file_req);
+/* AC - This information cannot be freed since it is necessary for the
+  lock_req.  Therefore, I will free it manually later on
+
+*/
                 break;
 
 	    case PVFS_SERV_IO:



More information about the Pvfs2-cvs mailing list