Crash when computing memory usage for mirrored sessions #699

pull/710/head
René Cannaò 10 years ago
parent 2150d53c0c
commit 8e9bbde6ed

@ -1547,6 +1547,8 @@ unsigned long long MySQL_ResultSet::current_size() {
unsigned long long intsize=0;
intsize+=sizeof(MySQL_ResultSet);
intsize+=RESULTSET_BUFLEN; // size of buffer
if (PSarrayOUT==NULL) // see bug #699
return intsize;
intsize+=sizeof(PtrSizeArray);
intsize+=(PSarrayOUT->size*sizeof(PtrSize_t *));
unsigned int i;

Loading…
Cancel
Save