Tag: free

455 What REALLY happens when you don't free after malloc? 2009-03-17T15:29:09.207

312 How does free know how much to free? 2009-10-05T07:45:31.613

247 How do malloc() and free() work? 2009-07-13T12:22:18.890

133 Setting variable to NULL after free 2009-06-22T05:35:16.893

92 Does free(ptr) where ptr is NULL corrupt memory? 2009-12-21T07:43:58.537

81 Why does `free` in C not take the number of bytes to be freed? 2014-06-13T11:10:25.513

64 Free memory allocated in a different function? 2012-06-17T12:11:30.860

55 Is this a good way to free memory in C? 2016-01-07T09:15:17.587

54 How do free and malloc work in C? 2009-12-24T06:49:06.013

54 Unable to free const pointers in C 2010-05-12T14:08:13.433

51 Will malloc implementations return free-ed memory back to the system? 2010-02-06T23:58:11.907

47 Should one really set pointers to `NULL` after freeing them? 2009-12-10T08:43:26.350

43 If `malloc(0)` returns a non-null pointer, can I pass that to `free`? 2017-06-02T14:24:43.647

42 If free() knows the length of my array, why can't I ask for it in my own code? 2010-04-16T05:49:03.160

36 C: Correctly freeing memory of a multi-dimensional array 2009-11-14T10:15:30.777

32 LinkedList - How to free the memory allocated using malloc 2011-08-11T11:50:23.360

31 Is free() zeroing out memory? 2015-06-06T13:38:23.013

26 malloc implementation? 2011-03-24T16:04:48.003

24 Trying to use free() to understand how it works 2014-04-14T05:19:45.187

23 Freeing memory twice 2010-03-18T10:01:32.957

23 How to check if a pointer is freed already in C? 2011-11-28T18:59:59.757

22 Can a call to free() in C ever fail? 2011-03-15T07:38:25.957

22 Can I assume that calling realloc with a smaller size will free the remainder? 2012-03-05T22:36:53.140

21 C++ freeing static variables 2010-03-11T23:26:27.937

20 What can cause "corrupted double-linked list" error? 2009-11-30T13:58:16.547

20 Howto check if a char* points to a string literal in C 2010-08-03T16:45:07.577

20 Is freeing allocated memory needed when exiting a program in C 2011-04-10T13:38:23.373

20 Allocate memory and save string in c 2011-12-22T06:30:04.830

18 What is the difference between freeing the pointer and assigning it to NULL? 2010-03-12T06:00:12.847

17 double free or corruption (!prev) error in c program 2012-09-01T19:37:12.343

16 Why doesn't free(p) set p to NULL? 2010-04-16T09:33:50.067

16 Why is free() not allowed in garbage-collected languages? 2010-05-04T14:45:34.383

16 How to avoid long chain of free's (or deletes) after every error check in C? 2010-07-27T00:31:18.803

16 How bad it is to keep calling malloc() and free()? 2011-09-30T15:00:12.730

15 What is the correct way to dynamically create/release runtime forms? 2011-06-10T18:41:07.347

15 C - Design your own free( ) function 2011-08-22T11:55:06.500

15 free() syntax with arguments in C 2014-10-04T12:39:45.637

15 Should I free memory before exit? 2016-04-12T21:07:35.540

15 Reassigning to a pointer variable after freeing it 2017-08-22T06:17:50.060

14 Where Do malloc() / free() Store Allocated Sizes and Addresses? 2009-05-12T09:34:02.853

14 When a program terminates what happens to the memory allocated using malloc that is not free'ed? 2012-04-19T07:44:04.823

14 Is the compiler allowed to recycle freed pointer variables? 2014-09-27T10:46:53.357

14 How does free() affect the memory address on the heap? 2018-10-23T14:11:54.683

13 C free(): invalid pointer 2013-11-30T06:55:30.670

13 Free an assigned pointer 2015-05-01T10:45:02.363

12 Why do I have to use free on a pointer but not a normal declaration? 2009-03-09T17:23:36.443

12 new, delete ,malloc & free 2010-07-06T06:57:33.957

12 Determining Whether Pointer is Valid 2011-01-04T16:03:29.697

12 C free and struct 2011-07-16T22:54:44.663

12 Reusing freed pointers in C 2013-07-25T16:43:17.750

12 Proper Way to Free Memory of a Returned Variable 2015-04-15T15:54:26.343

12 Calling free on a pointer twice 2015-12-15T09:00:17.407

11 Taming the malloc/free beast -- tips & tricks 2010-05-12T08:04:29.497

11 Should I free allocated memory on abnormal termination? 2010-07-23T10:12:24.617

11 Code for malloc and free 2011-06-26T17:39:00.117

11 Can I force a numpy ndarray to take ownership of its memory? 2012-01-03T06:36:06.270

11 How do I free a pointer returned from a function? 2012-08-09T22:32:12.110

11 Freeing allocated memory: realloc() vs. free() 2014-02-10T09:10:10.863

11 Is it vali to call free with a pointer to the first member? 2016-04-13T12:45:13.087

11 Freeing memory wrapped with NewDirectByteBuffer 2017-10-20T07:29:37.703

10 Freeing in an atexit() 2008-10-23T19:24:09.703

10 What is the best way to free memory after returning from an error? 2009-02-20T16:46:54.863

10 How to free a struct that contains only pointers 2011-02-06T18:53:45.780

10 How to use strtok in C properly so there is no memory leak? 2011-02-15T05:42:40.773

10 which free tools can I use to generate the program dependence graph for c codes 2012-03-21T12:27:12.670

10 Free allocated memory before return a function 2012-08-01T04:00:12.410

10 Why FreeAndNil implementation doing Nil before Free? 2014-10-29T06:18:53.763

9 Why exactly should I not call free() on variables not allocated by malloc()? 2010-04-22T05:12:59.220

9 Free cross-platform library to convert numbers (money amounts) to words? 2010-12-23T14:12:53.520

9 How does C free() work? 2011-01-16T05:53:01.223

9 Why is my pointer not null after free? 2011-09-30T09:54:41.780

9 does exit() free allocated memory on both _SUCCESS and _FAILURE 2012-08-23T13:23:58.637

9 When do I need dynamic memory? 2012-08-28T14:41:02.010

9 Do I need to free local variables? 2013-09-28T22:36:33.317

8 what happens when tried to free memory allocated by heap manager, which allocates more than asked for? 2010-02-25T17:56:49.583

8 free() on stack memory 2010-04-22T19:04:59.040

8 free() call works on simulator, makes iPad angry. iPad smash 2010-07-23T11:33:19.107

8 Is it always a good practice to set pointers to NULL after free()-ing them? 2010-07-29T18:23:53.547

8 Need C++ parser 2011-01-04T12:46:54.343

8 Problem with free() on structs in C. It doesn't reduce memory usage 2011-05-14T23:05:15.527

8 How to free pointer's space in memory? 2011-07-03T20:54:09.403

8 How can I do automatic memory management in C? 2011-07-26T19:49:09.100

8 Printing pointer addresses in C [two questions] 2011-12-22T12:01:15.113

8 Is there, besides hunting for memory leaks, another situation where I should free all objects when destroying an application? 2012-03-27T18:40:21.190

8 Why doesn't CudaFree seem to free memory? 2012-05-01T07:23:22.123

8 Can I free() static and automatic variables in C? 2012-05-23T08:15:10.987

8 Do I need to free the strtok resulting string? 2014-01-03T12:56:00.933

8 How do I keep Perl from consuming tons of memory when child forks of a large parent process shut down? 2015-03-18T15:58:48.480

7 How to free() a malloc()'d structured correctly? 2010-02-02T02:26:57.910

7 Segmentation fault after free(), what are the common causes for this? 2010-02-21T21:36:26.433

7 Is it possible to partially deallocate memory? 2010-12-15T07:04:05.837

7 Freeing strings in C 2012-04-08T13:39:09.730

7 Custom malloc implementation 2014-08-20T21:36:06.200

7 Does freeing an int* which was assigned to a char* (allocated by `malloc`) invoke Undefined Behavior? 2015-05-02T08:44:08.207

7 How to free recursive struct (trie) 2016-01-09T08:01:38.873

7 How to free and garbage collect a WebGL context? 2016-05-06T12:20:18.937

6 Is there any danger in calling free() or delete instead of delete[]? 2009-10-23T08:14:54.077

6 C++ allocator<X>::deallocate(NULL,1) allowed? 2010-06-23T18:45:09.123

6 Malloc, free and segmentation fault 2010-10-08T10:59:25.647