Changeset 15219

Show
Ignore:
Timestamp:
27.04.2008 20:20:02 (12 years ago)
Author:
davidb
Message:

Even though txt2db is written in C++, GDBM is written in C and therefore memory allocated by GDBM to keys should be release using C's free() rather than C++'s delete mechanism.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/src/txt2db/txt2db.cpp

    r9634 r15219  
    161161      } 
    162162       
    163       delete []key_data.dptr; 
    164       delete []value_data.dptr; 
     163      free(key_data.dptr); 
     164      free(value_data.dptr); 
    165165    } 
    166166  }