File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 9e3d0b002a5c2e81d43351c9b8550a3f4ccfb8f9
2
+ refs/heads/master: d58412bfa13a21718c629407939d08b8fca2edc7
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 71fe44def9676d519f5ce5d7304e581a42cf2c70
5
5
refs/heads/try: 1813e5aa1a03b0596b8de7abd1af31edf5d6098f
Original file line number Diff line number Diff line change @@ -123,7 +123,10 @@ impl CString {
123
123
}
124
124
125
125
/// Unwraps the wrapped `*libc::c_char` from the `CString` wrapper.
126
- /// Any ownership of the buffer by the `CString` wrapper is forgotten.
126
+ ///
127
+ /// The original object is destructed after this method is called, and if
128
+ /// the underlying pointer was previously allocated, care must be taken to
129
+ /// ensure that it is deallocated properly.
127
130
pub unsafe fn unwrap ( self ) -> * libc:: c_char {
128
131
let mut c_str = self ;
129
132
c_str. owns_buffer_ = false ;
You can’t perform that action at this time.
0 commit comments