]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fixed a memory leak.
authorBart Van Assche <bvanassche@acm.org>
Sun, 24 Feb 2008 18:29:43 +0000 (18:29 +0000)
committerBart Van Assche <bvanassche@acm.org>
Sun, 24 Feb 2008 18:29:43 +0000 (18:29 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7447

exp-drd/drd_semaphore.c

index 55c25e292a57561630ee45b85e9180181bf7aea0..594db008edf84b0640649d398f1d270e0fa218d2 100644 (file)
@@ -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));
   }
 }