diff --git a/string_pool.cc b/string_pool.cc index ecf72f6d9..cc3484c6e 100644 --- a/string_pool.cc +++ b/string_pool.cc @@ -158,8 +158,7 @@ const char *string_pool_sprintf(const char *fmt, ...) size = 32; /* Loop until we allocate a string big enough for the sprintf. */ for (;;) { - buf = (char *) realloc(buf, size); - assert(buf != NULL); + buf = (char *) safe_realloc(buf, size); va_start(ap, fmt); n = Vsnprintf(buf, size, fmt, ap); va_end(ap);