diff options
Diffstat (limited to 'ext/standard/iptc.c')
-rw-r--r-- | ext/standard/iptc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/iptc.c b/ext/standard/iptc.c index fa17c95f3c..2df16daaac 100644 --- a/ext/standard/iptc.c +++ b/ext/standard/iptc.c @@ -285,8 +285,9 @@ PHP_FUNCTION(iptcembed) fclose(fp); if (spool < 2) { -//??? RETVAL_STRINGL(spoolbuf, poi - spoolbuf, 0); + // TODO: avoid reallocation ??? RETVAL_STRINGL(spoolbuf, poi - spoolbuf); + efree(spoolbuf); } else { RETURN_TRUE; } |