Fix solaris vasprintf (don't free the memory, duh) (bug #4890)
authorMark Spencer <markster@digium.com>
Wed, 3 Aug 2005 17:36:46 +0000 (17:36 +0000)
committerMark Spencer <markster@digium.com>
Wed, 3 Aug 2005 17:36:46 +0000 (17:36 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6271 65c4cc65-6c06-0410-ace0-fbb531ad65f3

utils.c

diff --git a/utils.c b/utils.c
index 069eb65..1054203 100755 (executable)
--- a/utils.c
+++ b/utils.c
@@ -627,7 +627,6 @@ int vasprintf(char **strp, const char *fmt, va_list ap)
        if (!*strp)
                return -1;
        vsnprintf(*strp, size + 1, fmt, ap);
-       free(*strp);
 
        return size;
 }