Skip to content
Embedded Artistry

Embedded Artistry

Building Superior Embedded Systems

  • Welcome
  • Blog
  • Courses
  • Field Atlas
  • Memberships
  • Resources
    • Archive
    • Newsletter
    • What We’re Reading
    • For Beginners
    • Glossary
    • Libraries
    • Templates
    • YouTube Channel
  • Store
  • Consulting

Day: March 1, 2017

Posted on 1 March 201715 December 2021

C++ Smart Pointers with Aligned Malloc/Free

Recall in the aligned_malloc article that we noted the need to pair aligned_malloc with aligned_free. Using the wrong free call can cause serious problems, as we have modified the pointer that malloc originally returned to us. This problem of pairing allocators and deleters also applies in other situations: new must be paired with delete, while …

Continue reading "C++ Smart Pointers with Aligned Malloc/Free"

If you haven’t documented a commonality, it isn’t likely to be one by the time you get done implementing.D. L. Parnas

Free Newsletter

Sign up and receive our free playbook for writing portable embedded software.

  • Login
  • RSS Feed
  • Embedded Systems Newsletter
  • Membership Information

Featured Courses

  • Fundamentals of Abstraction
    15 Lessons
  • Designing Embedded Software for Change
    67 Lessons
  • Heapless C++
    27 Lessons
  • My Account
  • Privacy Policy
  • Contact Us
  • GitHub
  • LinkedIn
  • Twitter

©2026 Embedded Artistry LLC. All rights reserved.
EMBEDDED ARTISTRY and the OWL logo are registered trademarks of Embedded Artistry LLC.

Privacy Policy Proudly powered by WordPress