Skip to content

Technical Articles

Dionisio Developer

Writing on software, applied AI, product, and career growth, organized in publishing order for direct reading without noise.

A stack frame unwinding, with each destructor releasing its resource in reverse order

RAII in C++ — Ownership as a Type, Not a Convention

Most resource bugs are not logic bugs. They are path bugs. The allocation happened on line 40, the failure happened on line 55, and the free that belonged to line 90 never ran. You did not misunderstand the algorithm. You missed a branch.

Read more