[Pvfs2-cvs] commit by pw in pvfs2/src/common/gen-locks: gen-locks.c gen-locks.h

CVS commit program cvs at parl.clemson.edu
Tue Jul 24 14:52:21 EDT 2007


Update of /projects/cvsroot/pvfs2/src/common/gen-locks
In directory parlweb1:/tmp/cvs-serv11099/src/common/gen-locks

Modified Files:
	gen-locks.c gen-locks.h 
Log Message:
Remove errant free in null locking (posix okay).


Index: gen-locks.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/gen-locks/gen-locks.c,v
diff -u -p -p -u -r1.9 -r1.10
--- gen-locks.c	1 Jun 2007 20:58:03 -0000	1.9
+++ gen-locks.c	24 Jul 2007 18:52:20 -0000	1.10
@@ -77,7 +77,7 @@ int gen_posix_mutex_trylock(
 /*
  * gen_mutex_destroy()
  *
- * uninitializes the mutex and frees all memory associated with it.
+ * uninitializes the mutex.
  *
  * returns 0 on success, -errno on failure.
  */

Index: gen-locks.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/gen-locks/gen-locks.h,v
diff -u -p -p -u -r1.13 -r1.14
--- gen-locks.h	1 Jun 2007 20:58:03 -0000	1.13
+++ gen-locks.h	24 Jul 2007 18:52:20 -0000	1.14
@@ -86,7 +86,7 @@ static inline gen_thread_t gen_thread_se
     return 0;
 }
 #define gen_mutex_init(m) do{}while(0)
-#define gen_mutex_destroy(m) free(m)
+#define gen_mutex_destroy(m) do{}while(0)
 #endif /* __GEN_NULL_LOCKING__ */
 
 #endif /* __GEN_LOCKS_H */



More information about the Pvfs2-cvs mailing list