Changeset 64fa9e for pcp/src/opt.c


Ignore:
Timestamp:
Apr 21, 2008, 2:19:24 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
e00f47
Parents:
32de28
git-author:
Frederik Heber <heber@…> (04/18/08 14:51:49)
git-committer:
Frederik Heber <heber@…> (04/21/08 14:19:24)
Message:

Free(): now takes a debug string to know where free error occured

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pcp/src/opt.c

    r32de28 r64fa9e  
    2929 */
    3030static void FreeDebugStr(void) {
    31   if (DebugString) Free(DebugString);
    32   if (program_name) Free(program_name);
     31  if (DebugString) Free(DebugString, "FreeDebugStr: DebugString");
     32  if (program_name) Free(program_name, "FreeDebugStr: program_name");
    3333}
    3434
     
    6868      break;
    6969    case 'd':
    70       if (DebugString) Free(DebugString);
     70      if (DebugString) Free(DebugString, "GetOptions: DebugString");
    7171      Call->debug = 1;
    7272      DebugString = (char *)Malloc(strlen(optarg)+1, "GetOptions");
     
    7474      break;
    7575    case 'D':
    76       if (DebugString) Free(DebugString);
     76      if (DebugString) Free(DebugString, "GetOptions: DebugString");
    7777      DebugString = (char *)Malloc(strlen(optarg)+1, "GetOptions");
    7878      strcpy(DebugString, optarg);
Note: See TracChangeset for help on using the changeset viewer.