Memory Leak in base_cache.inc.php [1.3.5(marie)]
Brought to you by:
secureideas,
sinukas
See also: request 1649659
There is a memory leak created in includes/base_cache.inc.php
This causes BASE to die when attempting to display any alert data at all.
Our working theory is that this only becomes apparent as the number of sensors increases.
if ( ($archive_exists == 1) && (@$_COOKIE['archive'] != 1) ) {
$db2 = NewBASEDBConnection($DBlib_path, $DBtype);
$db2->baseConnect($archive_dbname, $archive_host, $archive_port,
$archive_user, $archive_password);
$archive_ccid_lst = $db2->baseExecute("SELECT MAX(cid) FROM acid_event WHERE sid='".$sid."'");
$archive_ccid_row = $archive_ccid_lst->baseFetchRow();
$archive_ccid = $archive_ccid_row[0];
if ( $archive_ccid == NULL ) $archive_ccid = 0;
} else {
$archive_ccid = 0;
}
A Fix is attached
Patch for base_cache.inc.php in the 1.3.5 release
Logged In: YES
user_id=836228
Originator: NO
I will look at this today.....
Logged In: YES
user_id=836228
Originator: NO
Checked into CVS. Will be part of 1.3.6
Kevin