• Luca Boccassi's avatar
    Problem: Valgrind reports read of freed memory · a9aeb492
    Luca Boccassi authored
    Solution: when iterating over a map and conditionally deleting
    elements, an erased iterator gets invalidated. Call erase using postfix
    increment on iterator to avoid using an invalid element in the next
    iteration.
    a9aeb492
radio.cpp 6.8 KB