implemented copyReg() with mmap(2) instead of read(2)+write(2) sequences
[util-vserver.git] / util-vserver / lib_internal / string.hc
index 53e9fc1..d003fd9 100644 (file)
@@ -33,3 +33,10 @@ String_c_str(String const *str, char *buf)
   buf[str->l] = '\0';
   return buf;
 }
+
+
+static inline UNUSED void
+String_free(String *str)
+{
+  free((char *)(str->d));
+}