Date: Sat, 30 Sep 2006 08:57:43 GMT From: Roman Divacky <rdivacky@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 106961 for review Message-ID: <200609300857.k8U8vhUN035749@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=106961 Change 106961 by rdivacky@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609300857.k8U8vhUN035749>