Client spamming server hotfix

svn path=/trunk/boinc/; revision=3781
This commit is contained in:
Rom Walton 2004-07-04 01:01:56 +00:00
parent 0b66bb3880
commit b36a009e89
2 changed files with 8 additions and 0 deletions

View File

@ -14592,4 +14592,10 @@ Rom 3 July 2004
db_base.C, .h
sched/
transitioner.C
Rom 3 July 2004
- Plug a memory leak in the transitioner
db/
boinc_db.C

View File

@ -645,6 +645,7 @@ int DB_TRANSITIONER_ITEM_SET::enumerate(
row = mysql_fetch_row(cursor.rp);
if (!row) {
mysql_free_result(cursor.rp);
cursor.active = false;
return -1;
}
@ -657,6 +658,7 @@ int DB_TRANSITIONER_ITEM_SET::enumerate(
items.push_back(last_item);
row = mysql_fetch_row(cursor.rp);
if (!row) {
mysql_free_result(cursor.rp);
cursor.active = false;
// if got fewer rows than requested, last group is complete