Revert adding the packed attribute, as it really doesn't make sense why that
commit1e1766852c9797e2e8b1880deb70842367c41154
authorrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Fri, 18 Jan 2008 21:37:21 +0000 (18 21:37 +0000)
committerrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Fri, 18 Jan 2008 21:37:21 +0000 (18 21:37 +0000)
tree412940c9632935af35f291792c1e7a307d9e05e3
parent810895a3710ed674bcf3b956d88e0910bf5f719f
Revert adding the packed attribute, as it really doesn't make sense why that
would do any good.  Fix the real bug, which is to do the check to see if the
frame came from a translator at the beginning of ast_frame_free(), instead of
at the end.  This ensures that it always gets checked, even if none of the
parts of the frame are malloc'd, and also ensures that we aren't looking at
free'd memory in the case that it is a malloc'd frame.

(closes issue #11792, reported by explidous, patched by me)

git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@99081 614ede4d-c843-0410-af14-a771ab80d22e
include/asterisk/translate.h
main/frame.c