diff options
Diffstat (limited to 'source4/heimdal/lib/roken/strpool.c')
-rw-r--r-- | source4/heimdal/lib/roken/strpool.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/heimdal/lib/roken/strpool.c b/source4/heimdal/lib/roken/strpool.c index 8ee95654cb..cf9997af9d 100644 --- a/source4/heimdal/lib/roken/strpool.c +++ b/source4/heimdal/lib/roken/strpool.c @@ -33,7 +33,7 @@ #ifdef HAVE_CONFIG_H #include <config.h> -RCSID("$Id: strpool.c,v 1.1 2005/06/28 22:46:57 lha Exp $"); +RCSID("$Id: strpool.c,v 1.2 2005/08/25 14:59:06 lha Exp $"); #endif #include <stdarg.h> @@ -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; } |