On 11/06/17 10:02 , Hick Gunter wrote: > You are preparing statements inside the loop, but only finalizing the > last one (i.e. outside the loop)
This is not a real loop, it executes one time only (do {...} while(0)). > -----Ursprüngliche Nachricht----- > Von: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] Im > Auftrag von Lev > Gesendet: Sonntag, 05. November 2017 01:28 > An: sqlite-users@mailinglists.sqlite.org > Betreff: [EXTERNAL] [sqlite] memory leak > > I'm fighting with some memory leak. From time to time the vsize of the > process goes up with 100k. I have several function like this, and I call them > in each second. My memory growth happens every 10 minutes or so. > do { > ... > > sqlite3_prepare_v2(sdmd->db, sqlQuery, -1, &sq3Stmt, > NULL); ... > } while(0); > > sqlite3_finalize(sq3Stmt); /*Release the dB*/ _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users