Fix: Des free était fait sur des ressources non allouées.
This commit is contained in:
parent
54c6f0873a
commit
ddce1625b4
@ -390,8 +390,12 @@ class Contact
|
|||||||
|
|
||||||
$this->user_id = $uobj->rowid;
|
$this->user_id = $uobj->rowid;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
$this->db->free();
|
$this->db->free();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dolibarr_syslog("Error in Contact::fetch() sql=$sql");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$sql = "SELECT count(*) ";
|
$sql = "SELECT count(*) ";
|
||||||
@ -408,14 +412,13 @@ class Contact
|
|||||||
{
|
{
|
||||||
$this->facturation = 0;
|
$this->facturation = 0;
|
||||||
}
|
}
|
||||||
|
$this->db->free();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dolibarr_syslog("Error in Contact::fetch() id=$_id");
|
dolibarr_syslog("Error in Contact::fetch() sql=$sql");
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->db->free();
|
|
||||||
|
|
||||||
if ($user)
|
if ($user)
|
||||||
{
|
{
|
||||||
$sql = "SELECT fk_user";
|
$sql = "SELECT fk_user";
|
||||||
@ -430,18 +433,17 @@ class Contact
|
|||||||
|
|
||||||
$this->birthday_alert = 1;
|
$this->birthday_alert = 1;
|
||||||
}
|
}
|
||||||
|
$this->db->free();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print $this->db->error();
|
dolibarr_syslog("Error in Contact::fetch() sql=$sql");
|
||||||
dolibarr_syslog("Error in Contact::fetch() id=$_id");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dolibarr_syslog("Error in Contact::fetch() id=$_id");
|
dolibarr_syslog("Error in Contact::fetch() sql=$sql");
|
||||||
print $this->db->error();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user