PERFORCE change 103164 for review

Roman Divacky rdivacky at FreeBSD.org
Fri Aug 4 13:29:59 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=103164

Change 103164 by rdivacky at rdivacky_witten on 2006/08/04 13:29:10

	The futex_put() must be called symmetrically to futex_get() so do it in the FUTEX_WAKE_OP
	case. This fixes the memleak with realplay.

Affected files ...

.. //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_futex.c#15 edit

Differences ...

==== //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_futex.c#15 (text+ko) ====

@@ -252,9 +252,9 @@
 		   	op_ret = 0;
 		   	/* Linux always puts there 0 retries */
    		   	op_ret += futex_wake(f2, 0, NULL);
-			futex_put(f2);
 			ret += op_ret;
 		}
+		futex_put(f2);
 		td->td_retval[0] = ret;
 	   	break;
 


More information about the p4-projects mailing list