PERFORCE change 106961 for review

Roman Divacky rdivacky at FreeBSD.org
Sat Sep 30 01:57:48 PDT 2006


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

Change 106961 by rdivacky at rdivacky_witten on 2006/09/30 08:57:41

	Dont forget to free em in a case of error.
	
	Suggested by: ssouhlal

Affected files ...

.. //depot/projects/linuxolator/src/sys/compat/linux/linux_emul.c#3 edit

Differences ...

==== //depot/projects/linuxolator/src/sys/compat/linux/linux_emul.c#3 (text+ko) ====

@@ -181,8 +181,10 @@
 		int null = 0;
 
 		error = copyout(&null, child_clear_tid, sizeof(null));
-		if (error)
+		if (error) {
+		   	free(em, M_LINUX);
 		   	return;
+		}
 
 		/* futexes stuff */
 		cup.uaddr = child_clear_tid;


More information about the p4-projects mailing list