mirror of https://github.com/BOINC/boinc.git
Client spamming server hotfix
svn path=/trunk/boinc/; revision=3781
This commit is contained in:
parent
0b66bb3880
commit
b36a009e89
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue