From 961a99aa56a506c732f285fe62d656f93955cbaa Mon Sep 17 00:00:00 2001 From: huangz Date: Tue, 10 Sep 2013 13:38:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20sdsfree=20=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E7=9A=84=E6=B3=A8=E9=87=8A=EF=BC=8C=E6=84=9F=E8=B0=A2?= =?UTF-8?q?=20@lingdecong=20=E7=9A=84=E6=8F=90=E9=86=92=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sds.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sds.c b/src/sds.c index 1c527d59e..4426b59b2 100644 --- a/src/sds.c +++ b/src/sds.c @@ -104,8 +104,9 @@ sds sdsdup(const sds s) { } /* - * 释放 sds 所对应的 sdshdr 结构的内存 - * 给定 sds 必须为 NULL + * 释放 sds 所对应的 sdshdr 结构的内存。 + * + * 如果 s 为 NULL ,那么不做动作。 * * T = O(N) */