Commit 5961e1b
committed
ext/xsl: free libxslt buffer when transformToXml output is empty
If xsltSaveResultToString sets doc_txt_ptr to a non-NULL allocation
but doc_txt_len to zero, the previous gate skipped xmlFree and leaked
the buffer. Current libxslt (1.1.34) sets both to NULL/0 in that case,
so this is latent today; the fix removes the dependency on that
convention.1 parent 171b722 commit 5961e1b
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
551 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
552 | 554 | | |
553 | 555 | | |
554 | 556 | | |
| |||
0 commit comments