Skip to content

Commit ddc314d

Browse files
committed
f readme - a bit more detail in use-after-free note.
1 parent 1b618d4 commit ddc314d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning-c-bindings/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ passed the void pointer when the object is `Clone`ed in Rust, returning a new vo
5757
new object. If the `free` pointer is NULL, you will not receive any notification when the trait
5858
object is no longer needed. If the `clone` pointer is NULL, we assume that the trait object may be
5959
`memcpy()`'d to create copies. Note that if you release resources with `free` without implementing
60-
`clone`, you will likely end up with use-after-free bugs.
60+
`clone`, you will likely end up with use-after-free bugs (as copies of the original this_arg value
61+
may still exist, unbeknownst to you).
6162

6263
For example, `LDKSocketDescriptor` is mapped as follows:
6364
```c

0 commit comments

Comments
 (0)