File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
branches/snap-stage3/src/librustrt 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
2
refs/heads/master: 7a93beef7f692b34168ad69633f56483d38ad8fc
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 9e3d0b002a5c2e81d43351c9b8550a3f4ccfb8f9
4
+ refs/heads/snap-stage3: d58412bfa13a21718c629407939d08b8fca2edc7
5
5
refs/heads/try: 1813e5aa1a03b0596b8de7abd1af31edf5d6098f
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
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