Changeset 927 for trunk/dll/notebook.c


Ignore:
Timestamp:
Jan 17, 2008, 3:22:03 AM (18 years ago)
Author:
Gregg Young
Message:

Free pszWorkBuf memory for NormalizeCmdLine calls. Add comments for ticket 161 fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/notebook.c

    r923 r927  
    202202        NormalizeCmdLine(pszWorkBuf, szCLBuf);
    203203        memcpy(virus, pszWorkBuf, strlen(pszWorkBuf) + 1);
     204        xfree(pszWorkBuf);
    204205        if (!strchr(virus, '%') && strlen(virus) > 3)
    205206          strcat(virus, " %p");
     
    493494          strcat(bined, " %a");
    494495      }
     496      xfree(pszWorkBuf);
    495497      PrfWriteProfileString(fmprof, appname, "Viewer", viewer);
    496498      PrfWriteProfileString(fmprof, appname, "Editor", editor);
     
    685687        memcpy(mailrun, pszWorkBuf, strlen(pszWorkBuf) + 1);
    686688      }
     689      xfree(pszWorkBuf);
    687690      PrfWriteProfileString(fmprof, appname, "HttpRunDir", httprundir);
    688691      PrfWriteProfileString(fmprof, appname, "FtpRunDir", ftprundir);
     
    12831286            strcat(compare, " %a");
    12841287        }
     1288      xfree(pszWorkBuf);
    12851289      PrfWriteProfileString(fmprof, appname, "Compare", compare);
    12861290      break;
Note: See TracChangeset for help on using the changeset viewer.