Changeset 1039 for trunk/dll/notebook.c
- Timestamp:
- Jul 6, 2008, 12:16:21 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/notebook.c
r1009 r1039 51 51 #include "notebook.h" 52 52 #include "fm3dll.h" 53 #include "fortify.h" 53 54 54 55 #pragma data_seg(DATA2) … … 214 215 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 215 216 if (!pszWorkBuf) { 216 xfree(szCLBuf, pszSrcFile, __LINE__);217 free(szCLBuf); 217 218 return 0; //already complained 218 219 } … … 222 223 NormalizeCmdLine(pszWorkBuf, szCLBuf); 223 224 memcpy(virus, pszWorkBuf, strlen(pszWorkBuf) + 1); 224 xfree(pszWorkBuf, pszSrcFile, __LINE__);225 xfree(szCLBuf, pszSrcFile, __LINE__);225 free(pszWorkBuf); 226 free(szCLBuf); 226 227 if (!strchr(virus, '%') && strlen(virus) > 3) 227 228 strcat(virus, " %p"); … … 487 488 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 488 489 if (!pszWorkBuf) { 489 xfree(szCLBuf, pszSrcFile, __LINE__);490 free(szCLBuf); 490 491 return 0; //already complained 491 492 } … … 522 523 strcat(bined, " %a"); 523 524 } 524 xfree(pszWorkBuf, pszSrcFile, __LINE__);525 xfree(szCLBuf, pszSrcFile, __LINE__);525 free(pszWorkBuf); 526 free(szCLBuf); 526 527 PrfWriteProfileString(fmprof, appname, "Viewer", viewer); 527 528 PrfWriteProfileString(fmprof, appname, "Editor", editor); … … 690 691 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 691 692 if (!pszWorkBuf) { 692 xfree(szCLBuf, pszSrcFile, __LINE__);693 free(szCLBuf); 693 694 return 0; //already complained 694 695 } … … 723 724 memcpy(mailrun, pszWorkBuf, strlen(pszWorkBuf) + 1); 724 725 } 725 xfree(pszWorkBuf, pszSrcFile, __LINE__);726 xfree(szCLBuf, pszSrcFile, __LINE__);726 free(pszWorkBuf); 727 free(szCLBuf); 727 728 PrfWriteProfileString(fmprof, appname, "HttpRunDir", httprundir); 728 729 PrfWriteProfileString(fmprof, appname, "FtpRunDir", ftprundir); … … 1326 1327 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 1327 1328 if (!pszWorkBuf) { 1328 xfree(szCLBuf, pszSrcFile, __LINE__);1329 free(szCLBuf); 1329 1330 return 0; //already complained 1330 1331 } … … 1346 1347 strcat(compare, " %a"); 1347 1348 } 1348 xfree(pszWorkBuf, pszSrcFile, __LINE__);1349 xfree(szCLBuf, pszSrcFile, __LINE__);1349 free(pszWorkBuf); 1350 free(szCLBuf); 1350 1351 PrfWriteProfileString(fmprof, appname, "Compare", compare); 1351 1352 break;
Note:
See TracChangeset
for help on using the changeset viewer.