Fossil

Check-in [11abffbb]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Pulled in minor memleak fix [bee0036681].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:11abffbb497d67a12b9daa24783aabd68d07da97
User & Date: stephan 2012-07-22 17:40:20
References
2012-07-22
17:59
merged in trunk [11abffbb497d67a], added a test script to check a th1 memleak case. check-in: 13b0e0b4 user: stephan tags: th1-query-api
Context
2012-07-25
10:58
Add <label> markup around all checkbox form entries. check-in: e78c49d3 user: drh tags: trunk
2012-07-22
17:59
merged in trunk [11abffbb497d67a], added a test script to check a th1 memleak case. check-in: 13b0e0b4 user: stephan tags: th1-query-api
17:40
Pulled in minor memleak fix [bee0036681]. check-in: 11abffbb user: stephan tags: trunk
2012-07-20
15:19
/json/dir now requires Read ("o"), instead of Hyperlink ("h") permission, analog to checkin [ded8615f95]. check-in: 625ed004 user: stephan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/th_lang.c.

356
357
358
359
360
361
362



363
364
365
366
367
368
369
  if( p->hasArgs ){
    char *zArgs = 0;
    int nArgs = 0;
    for(i=p->nParam+1; i<pArgs->argc; i++){
      Th_ListAppend(interp, &zArgs, &nArgs, pArgs->argv[i], pArgs->argl[i]);
    }
    Th_SetVar(interp, (const char *)"args", -1, zArgs, nArgs);



  }

  Th_SetResult(interp, 0, 0);
  return Th_Eval(interp, 0, p->zProgram, p->nProgram);
}

/*







>
>
>







356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
  if( p->hasArgs ){
    char *zArgs = 0;
    int nArgs = 0;
    for(i=p->nParam+1; i<pArgs->argc; i++){
      Th_ListAppend(interp, &zArgs, &nArgs, pArgs->argv[i], pArgs->argl[i]);
    }
    Th_SetVar(interp, (const char *)"args", -1, zArgs, nArgs);
    if(zArgs){
      Th_Free(interp, zArgs);
    }
  }

  Th_SetResult(interp, 0, 0);
  return Th_Eval(interp, 0, p->zProgram, p->nProgram);
}

/*