[vlc-devel] commit: Win32: fix malloc when creating a thread ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Sep 1 20:01:03 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Mon Sep  1 21:03:29 2008 +0300| [c148ac56bdba65671be9d2e64cc24ad7be2055de] | committer: Rémi Denis-Courmont 

Win32: fix malloc when creating a thread

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c148ac56bdba65671be9d2e64cc24ad7be2055de
---

 src/misc/threads.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/misc/threads.c b/src/misc/threads.c
index c6f47f7..7d62c3f 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -515,7 +515,7 @@ int vlc_clone (vlc_thread_t *p_handle, void * (*entry) (void *), void *data,
      * memory leaks and the signal functions not working (see Microsoft
      * Knowledge Base, article 104641) */
     HANDLE hThread;
-    vlc_thread_t th = malloc (sizeof (*p_handle));
+    vlc_thread_t th = malloc (sizeof (*th));
 
     if (th == NULL)
         return ENOMEM;




More information about the vlc-devel mailing list