diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-18 21:38:01 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-18 21:38:01 +0000 |
commit | cc1fcc753900c912d856f3f0498a4f7bfd8344a6 (patch) | |
tree | 5ad4a4412fd9a140bff03a47c4584789cbb0874c /include/asterisk/translate.h | |
parent | 66d6ff5e4881f737297ca5dbff3261ed11aa2008 (diff) |
Merged revisions 99081 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r99081 | russell | 2008-01-18 15:37:21 -0600 (Fri, 18 Jan 2008) | 9 lines
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/trunk@99082 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/translate.h')
-rw-r--r-- | include/asterisk/translate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/translate.h b/include/asterisk/translate.h index f4673944c..97f10283f 100644 --- a/include/asterisk/translate.h +++ b/include/asterisk/translate.h @@ -147,7 +147,7 @@ struct ast_trans_pvt { struct timeval nextin; struct timeval nextout; unsigned int destroy:1; -} attribute_packed; +}; /*! \brief generic frameout function */ struct ast_frame *ast_trans_frameout(struct ast_trans_pvt *pvt, |