1
0
Fork 0
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:
Jon Trulson 2018-03-31 17:52:27 -06:00
parent ecee8b3f3a
commit bbf028becc

View file

@ -93,7 +93,6 @@ void m_free(block, msg)
#if defined(MSDOS)
if (m_heapchk) m_heapdump() ;
#endif
free(block) ;
if (m_malftrace) {
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__)
sprintf(buffer, "%5x:%5x",
@ -107,6 +106,7 @@ void m_free(block, msg)
m_trace(msg) ;
m_trace("\n") ;
}
free(block) ;
#if defined(MSDOS)
if (m_heapchk) m_heapdump() ;
#endif