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

  • SEARCH
  • Home
  • 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 3422718
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:16:42+00:00 2026-05-18T06:16:42+00:00

Im on unix platform. The memory of a process with a memleak is cleaned

  • 0

Im on unix platform.

The memory of a process with a memleak is cleaned at process termination.

What about a process, that has spawned a child, where the child has a memleak.
Will the leaked memory be cleaned up at childprocess termination? Or will this memory now stick with the parent process.

Thanks

  • 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-18T06:16:43+00:00Added an answer on May 18, 2026 at 6:16 am

    The memory allocated by the child process exists only in the child process’s virtual address space, not the parent’s. It will be freed as soon as the child process terminates or replaces itself with a new program image via one of the exec family of functions.

    This is in contrast to threads, which share a common virtual address space, and where allocations made in a new thread will persist after the thread exits and remain usable by other threads.

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

Sidebar

Related Questions

I realize that since UNIX sockets are platform-specific, there has to be some non-Java
I'm in the process of writing a cross platform c# application that will run
I want to write a program, which will launch a child process. The child
Unix.....>>netstat -al | grep 8787 (will see packets on port 8787)
Unix 'file' command has a -0 option to output a null character after a
In Unix, can I run make in a directory without cd 'ing to that
How do I save a plot to a tiff file under Linux/Unix platform? I
This question is for experienced Unix/Linux developers. If you have found that you like
Hi I am working in C on Unix platform. Please tell me how to
Is there any validation tool for shell scripting on unix platform. like after the

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.