Fossil

Check-in [199b20d0]
Login

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

Overview
Comment:Fix a memory leak in the markdown renderer.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 199b20d0e150d31caf8106f629b72f1b7c3284d0e751077108cd47c588a03a08
User & Date: drh 2019-09-24 10:34:34
Context
2019-09-24
10:44
Move the implementation of the test-markdown-render command so that it is beside the test-wiki-render command in wikiformat.c. Also make minor enhancements to the help text for both commands. check-in: fcb20df7 user: drh tags: trunk
10:34
Fix a memory leak in the markdown renderer. check-in: 199b20d0 user: drh tags: trunk
10:09
Fix harmless memory leaks. check-in: 79988f96 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/markdown.c.

317
318
319
320
321
322
323

324
325
326
327
328
329
330


/* release_work_buffer -- release the given working buffer */
static void release_work_buffer(struct render *rndr, struct Blob *buf){
  if( !buf ) return;
  assert(rndr->work_active>0 && buf==(rndr->work+rndr->work_active-1));
  rndr->work_active -= 1;

}



/****************************
 * INLINE PARSING FUNCTIONS *
 ****************************/







>







317
318
319
320
321
322
323
324
325
326
327
328
329
330
331


/* release_work_buffer -- release the given working buffer */
static void release_work_buffer(struct render *rndr, struct Blob *buf){
  if( !buf ) return;
  assert(rndr->work_active>0 && buf==(rndr->work+rndr->work_active-1));
  rndr->work_active -= 1;
  blob_reset(buf);
}



/****************************
 * INLINE PARSING FUNCTIONS *
 ****************************/