]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Followup to r14886. So it turned out that in m_addrinfo we were already
authorFlorian Krohm <florian@eich-krohm.de>
Sat, 24 Jan 2015 18:26:05 +0000 (18:26 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Sat, 24 Jan 2015 18:26:05 +0000 (18:26 +0000)
strduping the filename which I failed to spot. Thanks to Philippe for
pointing that out.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14887

coregrind/m_addrinfo.c

index 7fc777bc40380f7933b9b7201ccd03dfa37570fe..0be05667dab17e326f374a49a4138feacda6b7d0 100644 (file)
@@ -295,10 +295,6 @@ void VG_(describe_addr) ( Addr a, /*OUT*/AddrInfo* ai )
          if (seg->kind == SkFileC)
             ai->Addr.SegmentKind.filename
                = VG_(strdup)("mc.da.skfname", VG_(am_get_filename)(seg));
-         if (ai->Addr.SegmentKind.filename != NULL)
-            ai->Addr.SegmentKind.filename 
-               = VG_(strdup)("mc.da.skfname",
-                             ai->Addr.SegmentKind.filename);
          ai->Addr.SegmentKind.hasR = seg->hasR;
          ai->Addr.SegmentKind.hasW = seg->hasW;
          ai->Addr.SegmentKind.hasX = seg->hasX;