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

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;
}