add missing free when no payments

This commit is contained in:
Jethro Grassie 2019-05-05 22:14:35 -04:00
parent f8b6245a39
commit feeb159d62
No known key found for this signature in database
GPG Key ID: DE8ED755616565BB
1 changed files with 2 additions and 0 deletions

View File

@ -853,6 +853,8 @@ send_payments()
callback->cb = rpc_on_wallet_transferred;
rpc_wallet_request(base, body, callback);
}
else
free(payments);
return 0;
}