[Pvfs2-cvs] commit by pw in pvfs2/src/client/sysint: sys-getattr.sm

CVS commit program cvs at parl.clemson.edu
Fri Jan 4 11:37:12 EST 2008


Update of /projects/cvsroot/pvfs2/src/client/sysint
In directory parlweb1:/tmp/cvs-serv13972/src/client/sysint

Modified Files:
	sys-getattr.sm 
Log Message:
Check msgarray against NULL, and don't free if it is.  This has no effect,
as free(NULL) is smart enough not to free anything, but it makes debugging
malloc libraries happier.


Index: sys-getattr.sm
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/client/sysint/sys-getattr.sm,v
diff -u -p -p -u -r1.109 -r1.110
--- sys-getattr.sm	30 Aug 2007 00:13:41 -0000	1.109
+++ sys-getattr.sm	4 Jan 2008 16:37:12 -0000	1.110
@@ -472,7 +472,7 @@ static PINT_sm_action getattr_object_get
     }
 
     /* point msgarray to the statically allocated msgpair */
-    if (sm_p->msgarray != &(sm_p->msgpair))
+    if (sm_p->msgarray != NULL && sm_p->msgarray != &(sm_p->msgpair))
     {
 	    free(sm_p->msgarray);
     }



More information about the Pvfs2-cvs mailing list