From: Enrico Scholz Date: Fri, 18 Mar 2005 00:20:42 +0000 (+0000) Subject: String_free(): added X-Git-Tag: IPSENTINEL_VERSION_0_12~79 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abda326beda289e9deabac91ec422315b069b06f;p=util-vserver.git String_free(): added git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1915 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/lib_internal/string.hc b/util-vserver/lib_internal/string.hc index 53e9fc1..d003fd9 100644 --- a/util-vserver/lib_internal/string.hc +++ b/util-vserver/lib_internal/string.hc @@ -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)); +}