rust/protover: return C-allocated string in protover_all_supported()

The result of CString::into_raw() is not safe to free
with free() except under finicky and fragile circumstances
that we definitely don't meet right now.

This was missed in be583a34a3.
This commit is contained in:
cypherpunks
2018-09-21 05:16:22 +00:00
parent db89b4b152
commit 42558df7c8
2 changed files with 5 additions and 6 deletions
+4
View File
@@ -0,0 +1,4 @@
o Minor bugfixes (rust):
- Return a string that can be safely freed by C code, not one created by
the rust allocator, in protover_all_supported(). Fixes bug 27740; bugfix
on 0.3.3.1-alpha.