From: Bart Van Assche Date: Sun, 24 Feb 2008 18:29:43 +0000 (+0000) Subject: Fixed a memory leak. X-Git-Tag: svn/VALGRIND_3_4_0~1045 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cfbcb71d6226deeb61e79a00681e65a73cead58a;p=thirdparty%2Fvalgrind.git Fixed a memory leak. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7447 --- diff --git a/exp-drd/drd_semaphore.c b/exp-drd/drd_semaphore.c index 55c25e292a..594db008ed 100644 --- a/exp-drd/drd_semaphore.c +++ b/exp-drd/drd_semaphore.c @@ -157,7 +157,7 @@ void semaphore_pre_post(const DrdThreadId tid, const Addr semaphore, { p->last_sem_post_tid = tid; thread_new_segment(tid); - vc_copy(&p->vc, thread_get_vc(tid)); + vc_assign(&p->vc, thread_get_vc(tid)); } }