Questions tagged [crt]

For issues relating to utilizing the C runtime library.

The C runtime library is a special program library used by a compiler, to implement functions built into the C programming language, during the execution (runtime) of a computer program.

Not to be confused with CRT terminals.

331 questions
-2
votes
3 answers

_CrtDumpMemoryLeaks() gives a leak for a simple new int()

This code: int *pi = new int(); _CrtDumpMemoryLeaks(); gives me a leak of 4 bytes. Why? My pointer pi is pointing to the allocated memory. I would understand the leak if I had wrote pi = nullptr, but I did not. Any ideas?
Kami
  • 979
  • 2
  • 9
  • 25
1 2 3
22
23