geeksforgeeks
  • Courses
  • Tutorials
  • Practice
  • Jobs
  • DSA
  • Practice Problems
  • C
  • C++
  • Java
  • Python
  • JavaScript
  • Data Science
  • Machine Learning
  • Courses
  • Linux
  • DevOps
Videos
July 08, 2022 |15.9K Views

Memory leak

C Language, C-Dynamic-Memory-Allocation
 Save  Share   Like
Description
Discussion

Memory leak occurs when programmers create a memory in heap and forget to delete it.

The consequences of memory leak is that it reduces the performance of the computer by reducing the amount of available memory. Eventually, in the worst case, too much of the available memory may become allocated and all or part of the system or device stops working correctly, the application fails, or the system slows down vastly .


Memory leak  : https://www.geeksforgeeks.org/what-is-memory-leak-how-can-we-avoid/

Recommendations
Video Thumbnail
04:19
Video Thumbnail
8.0K Views | 09/09/2025...
sizeof Operator in C
Video Thumbnail
03:50
Video Thumbnail
2.7K Views | 21/01/2025...
Write a C Program to Reverse a Number
Video Thumbnail
06:54
Video Thumbnail
6.9K Views | 13/08/2024...
Count the Digits in a Number | C Program
Video Thumbnail
08:22
Video Thumbnail
7.0K Views | 18/01/2023...
C Program to count number of lines in a file
Video Thumbnail
12:30
Video Thumbnail
3.1K Views | 24/11/2022...
C Program to Segregate Even and Odd numbers
Video Thumbnail
10:26
Video Thumbnail
11.3K Views | 22/11/2022...
C Program to Calculate Grade of Student
Video Thumbnail
09:59
Video Thumbnail
2.6K Views | 18/11/2022...
C program to calculate the angle between hour and minute hand
Video Thumbnail
05:50
Video Thumbnail
2.5K Views | 07/11/2022...
C program to print Kite pattern
Video Thumbnail
07:38
Video Thumbnail
600 Views | 03/11/2022...
C Program to find the Area and Perimeter of a Semicircle
Video Thumbnail
09:12
Video Thumbnail
1.9K Views | 28/10/2022...
C program to find square root of a negative number
GeeksforGeeks
location
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
location
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play StoreGFG App on App Store
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • Careers
  • Contact Us
  • Corporate Solution
  • Campus Training Program
  • Explore
  • POTD
  • Practice Problems
  • Connect
  • Blogs
  • Upskill Courses
  • Tutorials
  • Programming Languages
  • DSA
  • Web Technology
  • AI, ML & Data Science
  • DevOps
  • CS Core Subjects
  • GATE
  • School Subjects
  • Software and Tools
  • Courses
  • ML and Data Science
  • DSA and Placements
  • Web Development
  • Data Science
  • Programming Languages
  • DevOps & Cloud
  • GATE
  • MongoDB Certifications
  • Preparation Corner
  • Interview Corner
  • Aptitude
  • Puzzles
  • GfG 160
  • System Design
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved