Changeset 620

Show
Ignore:
Timestamp:
08/18/06 20:52:57 (2 years ago)
Author:
common
Message:

nepenthes

  • submit-postgres
    • we should avoid freeing memory we still need
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/modules/submit-postgres/submit-postgres.cpp

    r619 r620  
    287287                if (resvec[0]["sensor_add_instance"] == "f") 
    288288                        logCrit("ERROR inserting instance\n"); 
     289                delete m_OutstandingQueries.front(); 
    289290                break; 
    290291 
     
    292293                if (resvec[0]["sensor_add_sample"] == "f") 
    293294                        logCrit("ERROR inserting sample\n"); 
     295                delete m_OutstandingQueries.front(); 
    294296                break; 
    295297 
     
    299301 
    300302 
    301         delete m_OutstandingQueries.front(); 
    302303        m_OutstandingQueries.pop_front(); 
    303304        return true;