diff --git a/htdocs/societe.class.php b/htdocs/societe.class.php index 8d9e8c1f14e..dbd6eba41cb 100644 --- a/htdocs/societe.class.php +++ b/htdocs/societe.class.php @@ -618,9 +618,8 @@ class Societe $this->pays = $obj->pays; $this->code_pays = $obj->code; - $this->db->free(); - - + $this->db->free($result); + return 1; } else