Changeset 1039 for trunk/dll/command.c
- Timestamp:
- Jul 6, 2008, 12:16:21 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/command.c
r1009 r1039 44 44 #include "pathutil.h" // NormalizeCmdLine 45 45 #include "command.h" 46 #include "fortify.h" 46 47 47 48 typedef struct … … 310 311 xfree(info->title, pszSrcFile, __LINE__); 311 312 xfree(info->pszCmdLine, pszSrcFile, __LINE__); 312 xfree(info, pszSrcFile, __LINE__);313 free(info); 313 314 info = next; 314 315 } … … 360 361 xfree(info->pszCmdLine, pszSrcFile, __LINE__); 361 362 xfree(info->title, pszSrcFile, __LINE__); 362 xfree(info, pszSrcFile, __LINE__);363 free(info); 363 364 break; 364 365 } … … 372 373 } 373 374 } 374 xfree(pszCmdLine, pszSrcFile, __LINE__);375 free(pszCmdLine); 375 376 fclose(fp); 376 377 } … … 429 430 xfree(info->pszCmdLine, pszSrcFile, __LINE__); 430 431 xfree(info->title, pszSrcFile, __LINE__); 431 xfree(info, pszSrcFile, __LINE__);432 free(info); 432 433 return NULL; 433 434 } … … 466 467 xfree(info->pszCmdLine, pszSrcFile, __LINE__); 467 468 xfree(info->title, pszSrcFile, __LINE__); 468 xfree(info, pszSrcFile, __LINE__);469 free(info); 469 470 return TRUE; 470 471 } … … 635 636 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 636 637 if (!pszWorkBuf) { 637 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);638 free(temp.pszCmdLine); 638 639 break; //already complained 639 640 } … … 641 642 NormalizeCmdLine(pszWorkBuf, temp.pszCmdLine); 642 643 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1); 643 xfree(pszWorkBuf, pszSrcFile, __LINE__);644 free(pszWorkBuf); 644 645 if (!strchr(temp.pszCmdLine, '%')){ 645 646 ret = saymsg(MB_YESNO, … … 669 670 if (fCancelAction){ 670 671 fCancelAction = FALSE; 671 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);672 free(temp.pszCmdLine); 672 673 break; 673 674 } … … 708 709 } 709 710 } 710 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);711 free(temp.pszCmdLine); 711 712 } 712 713 x = (SHORT) WinSendDlgItemMsg(hwnd, … … 740 741 pszWorkBuf = xmalloc(MaxComLineStrg, pszSrcFile, __LINE__); 741 742 if (!pszWorkBuf) { 742 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);743 free(temp.pszCmdLine); 743 744 break; //already complained 744 745 } … … 746 747 NormalizeCmdLine(pszWorkBuf, temp.pszCmdLine); 747 748 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1); 748 xfree(pszWorkBuf, pszSrcFile, __LINE__);749 free(pszWorkBuf); 749 750 if (!strchr(temp.pszCmdLine, '%')){ 750 751 ret = saymsg(MB_YESNO, … … 774 775 if (fCancelAction){ 775 776 fCancelAction = FALSE; 776 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);777 free(temp.pszCmdLine); 777 778 break; 778 779 } … … 809 810 } 810 811 } 811 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);812 free(temp.pszCmdLine); 812 813 } 813 814 break; … … 853 854 temp.pszCmdLine = xmallocz(MaxComLineStrg, pszSrcFile, __LINE__); 854 855 if (!temp.pszCmdLine) { 855 xfree(pszWorkBuf, pszSrcFile, __LINE__);856 free(pszWorkBuf); 856 857 break; //already complained 857 858 } … … 859 860 NormalizeCmdLine(pszWorkBuf, temp.pszCmdLine); 860 861 memcpy(temp.pszCmdLine, pszWorkBuf, strlen(pszWorkBuf) + 1); 861 xfree(pszWorkBuf, pszSrcFile, __LINE__);862 free(pszWorkBuf); 862 863 if (fCancelAction){ 863 864 fCancelAction = FALSE; 864 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);865 free(temp.pszCmdLine); 865 866 break; 866 867 } … … 976 977 } 977 978 } 978 xfree(temp.pszCmdLine, pszSrcFile, __LINE__);979 free(temp.pszCmdLine); 979 980 } 980 981 break;
Note:
See TracChangeset
for help on using the changeset viewer.