diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 182de040300..a483e5dfa74 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -123,9 +123,9 @@ if($action == 'order'){ dol_print_error($db); dol_syslog("replenish.php: ".$error, LOG_ERROR); } + $db->free($resql); } } - $db->free($resql); //we now know how many orders we need and what lines they have $i = 0; $orders = array();