aboutsummaryrefslogtreecommitdiff
path: root/sys/base/string/free.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/base/string/free.c')
-rw-r--r--sys/base/string/free.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/base/string/free.c b/sys/base/string/free.c
new file mode 100644
index 0000000..7b5ee98
--- /dev/null
+++ b/sys/base/string/free.c
@@ -0,0 +1,8 @@
+#include "internal.h"
+
+// free returns memory associated to the buffer.
+void
+strĀ·free(string s)
+{
+ free(s - sizeof(Hdr));
+}