mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Initialize ext so that MCLFREE will be called appropriately.
This macro was freeing (m)->m_data, but m was not a macro parameter. It compiled because virtually every mbuf * is named m. Fixed. svn path=/trunk/; revision=11023
This commit is contained in:
parent
d7a6bf353f
commit
102c8c9a78
1 changed files with 2 additions and 3 deletions
|
@ -304,14 +304,13 @@ union mcluster {
|
|||
#ifdef __REACTOS__
|
||||
#define MCLGET(m, how) { \
|
||||
OS_DbgPrint(OSK_MID_TRACE,("(MCLGET) m = %x\n", m)); \
|
||||
(m)->m_data = malloc(MCLBYTES); \
|
||||
(m)->m_data = (m)->m_ext.ext_buf = malloc(MCLBYTES); \
|
||||
(m)->m_flags |= M_EXT; \
|
||||
(m)->m_ext.ext_size = MCLBYTES; \
|
||||
}
|
||||
|
||||
#define MCLFREE(p) { \
|
||||
OS_DbgPrint(OSK_MID_TRACE,("(MCLFREE) p = %x\n", p)); \
|
||||
free( (m)->m_data ); \
|
||||
free( (p) ); \
|
||||
}
|
||||
#else
|
||||
#define MCLGET(m, how) \
|
||||
|
|
Loading…
Reference in a new issue