Eh... ship it. RAM is cheap.
53 0 Reply"Uh, Boss, our customers are sending us the invoices for their RAM purchases."
32 0 ReplyOMG I SHOULD HAVE DONE THAT TO JETBRAINS AND MICROSOFT FOR TEAMS
48 0 Reply
That's why I preallocate the max memory I will need just like I was taught to do in Fortran. You can't leak what you don't have.
40 0 ReplyHeap allocation failure > gradual memory leak
Checkmate atheists.
14 0 Reply
This is why I only allocate on the stack
26 0 ReplyPeople who are enthusiastic about using pointers in C++ are doing it wrong. Never use a pointer when you can get away with a reference.
20 1 ReplyFor C++, yes. But "reference" is just a way of using the pointer when it comes to C
23 0 ReplySure, but that's technically allocation-agnostic either way.
8 0 Reply
Based nasa compliant engineer
13 0 ReplyThis guy gets it
Static allocation for the SIL ratings
9 0 Reply
Stack overflow intensifies
12 0 ReplyI only use the registers.
3 0 Reply
~I’m sorry~
20 2 Replyrip random amiga machine
5 0 ReplyThe line causing the memory leaks is actually the lack of a line:
free()
.2 0 Reply