Skip to content

Commit

Permalink
fix memory leak, remove query_logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jaggedsoft authored Jun 10, 2020
1 parent f8ff111 commit 288e6f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions php-binance-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class API
// /< value of available onOrder assets

protected $exchangeInfo = NULL;
protected $query_logs = [];
protected $lastRequest = [];

/**
* Constructor for the class,
Expand Down Expand Up @@ -1008,7 +1008,7 @@ protected function httpRequest(string $url, string $method = "GET", array $param

$json = json_decode($output, true);

$this->query_logs[] = [
$this->lastRequest = [
'url' => $url,
'method' => $method,
'params' => $params,
Expand Down

0 comments on commit 288e6f5

Please sign in to comment.