Changeset 1009 for trunk/dll/command.c
- Timestamp:
- May 10, 2008, 9:51:58 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/command.c
r989 r1009 308 308 while (info) { 309 309 next = info->next; 310 xfree(info->title );311 xfree(info->pszCmdLine );312 xfree(info );310 xfree(info->title, pszSrcFile, __LINE__); 311 xfree(info->pszCmdLine, pszSrcFile, __LINE__); 312 xfree(info, pszSrcFile, __LINE__); 313 313 info = next; 314 314 } … … 358 358 info->flags = atol(flags); 359 359 if (!info->pszCmdLine || !info->title) { 360 xfree(info->pszCmdLine );361 xfree(info->title );362 xfree(info );360 xfree(info->pszCmdLine, pszSrcFile, __LINE__); 361 xfree(info->title, pszSrcFile, __LINE__); 362 xfree(info, pszSrcFile, __LINE__); 363 363 break; 364 364 } … … 372 372 } 373 373 } 374 xfree(pszCmdLine );374 xfree(pszCmdLine, pszSrcFile, __LINE__); 375 375 fclose(fp); 376 376 } … … 427 427 info->flags = addme->flags; 428 428 if (!info->pszCmdLine || !info->title) { 429 xfree(info->pszCmdLine );430 xfree(info->title );431 xfree(info );429 xfree(info->pszCmdLine, pszSrcFile, __LINE__); 430 xfree(info->title, pszSrcFile, __LINE__); 431 xfree(info, pszSrcFile, __LINE__); 432 432 return NULL; 433 433 } … … 464 464 cmdtail = info->prev; 465 465 } 466 xfree(info->pszCmdLine );467 xfree(info->title );468 xfree(info );466 xfree(info->pszCmdLine, pszSrcFile, __LINE__); 467 xfree(info->title, pszSrcFile, __LINE__); 468 xfree(info, pszSrcFile, __LINE__); 469 469 return TRUE; 470 470 } … … 635 635 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 636 636 if (!pszWorkBuf) { 637 xfree(temp.pszCmdLine );637 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 638 638 break; //already complained 639 639 } … … 641 641 NormalizeCmdLine(pszWorkBuf, temp.pszCmdLine); 642 642 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1); 643 xfree(pszWorkBuf );643 xfree(pszWorkBuf, pszSrcFile, __LINE__); 644 644 if (!strchr(temp.pszCmdLine, '%')){ 645 645 ret = saymsg(MB_YESNO, … … 669 669 if (fCancelAction){ 670 670 fCancelAction = FALSE; 671 xfree(temp.pszCmdLine );671 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 672 672 break; 673 673 } … … 708 708 } 709 709 } 710 xfree(temp.pszCmdLine );710 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 711 711 } 712 712 x = (SHORT) WinSendDlgItemMsg(hwnd, … … 740 740 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 741 741 if (!pszWorkBuf) { 742 xfree(temp.pszCmdLine );742 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 743 743 break; //already complained 744 744 } … … 746 746 NormalizeCmdLine(pszWorkBuf, temp.pszCmdLine); 747 747 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1); 748 xfree(pszWorkBuf );748 xfree(pszWorkBuf, pszSrcFile, __LINE__); 749 749 if (!strchr(temp.pszCmdLine, '%')){ 750 750 ret = saymsg(MB_YESNO, … … 774 774 if (fCancelAction){ 775 775 fCancelAction = FALSE; 776 xfree(temp.pszCmdLine );776 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 777 777 break; 778 778 } … … 809 809 } 810 810 } 811 xfree(temp.pszCmdLine );811 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 812 812 } 813 813 break; … … 853 853 temp.pszCmdLine = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__); 854 854 if (!temp.pszCmdLine) { 855 xfree(pszWorkBuf );855 xfree(pszWorkBuf, pszSrcFile, __LINE__); 856 856 break; //already complained 857 857 } … … 859 859 NormalizeCmdLine(pszWorkBuf, temp.pszCmdLine); 860 860 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1); 861 xfree(pszWorkBuf );861 xfree(pszWorkBuf, pszSrcFile, __LINE__); 862 862 if (fCancelAction){ 863 863 fCancelAction = FALSE; 864 xfree(temp.pszCmdLine );864 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 865 865 break; 866 866 } … … 976 976 } 977 977 } 978 xfree(temp.pszCmdLine );978 xfree(temp.pszCmdLine, pszSrcFile, __LINE__); 979 979 } 980 980 break;
Note:
See TracChangeset
for help on using the changeset viewer.