From 229b381adc05f126c18065fbbcfd132c31f06483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 25 Aug 2005 14:59:06 +0000 Subject: [PATCH] (rk_strpoolprintf): remove debug printf, plug memory leak git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15986 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/strpool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/roken/strpool.c b/lib/roken/strpool.c index 9cc5031c4..b4dde03ee 100644 --- a/lib/roken/strpool.c +++ b/lib/roken/strpool.c @@ -81,19 +81,18 @@ rk_strpoolprintf(struct rk_strpool *p, const char *fmt, ...) len = vasprintf(&str, fmt, ap); va_end(ap); if (str == NULL) { - printf("vasprintf"); rk_strpoolfree(p); return NULL; } str2 = realloc(p->str, len + p->len + 1); if (str2 == NULL) { - printf("realloc"); rk_strpoolfree(p); return NULL; } p->str = str2; memcpy(p->str + p->len, str, len + 1); p->len += len; + free(str); return p; }