mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dthelp/htag/malloc: coverity CID 86955; use after free
This commit is contained in:
parent
ecee8b3f3a
commit
bbf028becc
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,6 @@ void m_free(block, msg)
|
||||||
#if defined(MSDOS)
|
#if defined(MSDOS)
|
||||||
if (m_heapchk) m_heapdump() ;
|
if (m_heapchk) m_heapdump() ;
|
||||||
#endif
|
#endif
|
||||||
free(block) ;
|
|
||||||
if (m_malftrace) {
|
if (m_malftrace) {
|
||||||
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__)
|
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__)
|
||||||
sprintf(buffer, "%5x:%5x",
|
sprintf(buffer, "%5x:%5x",
|
||||||
|
@ -107,6 +106,7 @@ void m_free(block, msg)
|
||||||
m_trace(msg) ;
|
m_trace(msg) ;
|
||||||
m_trace("\n") ;
|
m_trace("\n") ;
|
||||||
}
|
}
|
||||||
|
free(block) ;
|
||||||
#if defined(MSDOS)
|
#if defined(MSDOS)
|
||||||
if (m_heapchk) m_heapdump() ;
|
if (m_heapchk) m_heapdump() ;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue