Use ast_free() instead of free().
authorSean Bright <sean@malleable.com>
Fri, 4 Sep 2009 19:29:02 +0000 (19:29 +0000)
committerSean Bright <sean@malleable.com>
Fri, 4 Sep 2009 19:29:02 +0000 (19:29 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@216593 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index 7cfbf1b..a61af0e 100644 (file)
@@ -2357,7 +2357,7 @@ static struct ast_vm_user *find_user_realtime_imapuser(const char *imapuser)
                ast_variables_destroy(var);
                return vmu;
        } else {
-               free(vmu);
+               ast_free(vmu);
                return NULL;
        }
 }