@davdav
It is working without any change in v4.2 release, no leak. So, ideally, there are no changes required at your side in the SDK.
In my first reply, where I confirmed it was an issue, I had tested it with IDF master (which has a different esp-nimble branch: nimble-1.3.0-idf). So, the issue is still present in master and the fix (provided to you in a previous reply) will be reviewed and added to it sometime soon.
Let me know, if you have any questions