diff --git a/Timeline/Log_Entry.C b/Timeline/Log_Entry.C index 9fbddbc..1a389c2 100644 --- a/Timeline/Log_Entry.C +++ b/Timeline/Log_Entry.C @@ -116,6 +116,8 @@ Log_Entry::print ( void ) const strcpy( r2, r ); + free( r ); + return r2; } diff --git a/Timeline/Loggable.C b/Timeline/Loggable.C index 383d582..b3dd30a 100644 --- a/Timeline/Loggable.C +++ b/Timeline/Loggable.C @@ -697,8 +697,11 @@ Loggable::record_unjournaled ( void ) const if ( e->size() ) _loggables[ _id ].unjournaled_state = e; else + { /* don't waste space on loggables with no unjournaled properties */ _loggables[ _id ].unjournaled_state = NULL; + delete e; + } } /** Log object destruction. *Must* be called at the beginning of the