Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1047555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:19:10+00:00 2026-05-16T16:19:10+00:00

hello i got a problem using valgrind when i use it with valgrind –leak-check=full

  • 0

hello i got a problem using valgrind
when i use it with valgrind --leak-check=full and afterwards the name of excution file it tells me in which blocks the memory leak is but when i cant find to which pointer i did use free.
is there some sort of flag that tells the name of the pointer.
if there is anyway to tell me where the leak is on visual studio i would very much like to hear about it too

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:19:11+00:00Added an answer on May 16, 2026 at 4:19 pm

    It can’t tell you the name of the pointer, because the whole idea of a memory leak is that no pointer points at the memory any more (at least, for the kinds of leaks that Valgrind describes as “definitely lost”).

    What it can tell you is the source file and line number where the memory was allocated – you then will need to look up that line in your source to figure out where the memory is supposed to be deallocated. For example, if the Valgrind loss record looks like:

    ==17110== 49 bytes in 1 blocks are definitely lost in loss record 17 of 35
    ==17110==    at 0x4023D6E: malloc (vg_replace_malloc.c:207)
    ==17110==    by 0x80C4CF8: do_foo (foo.c:1161)
    ==17110==    by 0x80AE325: xyzzy (bar.c:466)
    ==17110==    by 0x8097C46: io (bar.c:950)
    ==17110==    by 0x8098163: main (quux.c:1291)
    

    Then you need to look at line 1161 in foo.c, which is within the function do_foo(). That’s where the memory was allocated (with malloc()), and only you can say where it should have been freed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello i got a problem using Apache-Tomcat v6.0.29. The Problem My application uses apache
Hello i have got a problem, if I try to display maps with using
hello i got a problem with reading from a file, i am trying to
Hello stackoverflow people! I've got a problem which I haven't been able to solve
if you've got something like, <hello id=1 name=myName1> <anotherTag title=Hello> </anotherTag> </hello> <hello id=2
Hello I got problem with scroll on my grid. Here is the code (nothing
Hello Android developers, I've got a problem with the Android SearchView widget. What I'm
Hello I've got a problem accessing Oracle DB from our datacenter through a tunnel.
I've got a problem using WebClient.UploadStringAsync method. I've to do a POST request with
im using jqueryui dialog but there's a problem upon loading it from other file.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.