summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-10-10 22:22:43 +0000
committerAntony Dovgal <tony2001@php.net>2006-10-10 22:22:43 +0000
commitcb90d3ce76af06be47c50e7bc487039b03d8a0c8 (patch)
treeb44610006232fedc3c81bb7d7d3d96826ee9fc99 /ext
parent11235cff7bdb27102d3b6b1eff25589aca77a545 (diff)
downloadphp-git-cb90d3ce76af06be47c50e7bc487039b03d8a0c8.tar.gz
MFH: fix leak and typos in error messages
Diffstat (limited to 'ext')
-rw-r--r--ext/exif/exif.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c
index df8b5797ba..237d922a6b 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -2182,7 +2182,7 @@ static void exif_process_CME (image_info_type *image_info, char *value, size_t l
}
} else {
exif_iif_add_tag(image_info, SECTION_COMMENT, "Comment", TAG_COMPUTED_VALUE, TAG_FMT_UNDEFINED, 0, NULL);
- php_error_docref(NULL TSRMLS_CC, E_NOTICE, "JPEG2000 comment section to small");
+ php_error_docref(NULL TSRMLS_CC, E_NOTICE, "JPEG2000 comment section too small");
}
}
#endif
@@ -3708,7 +3708,7 @@ static int exif_scan_FILE_header(image_info_type *ImageInfo TSRMLS_DC)
}
}
} else {
- exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_WARNING, "File to small (%d)", ImageInfo->FileSize);
+ exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_WARNING, "File too small (%d)", ImageInfo->FileSize);
}
return ret;
}
@@ -4022,6 +4022,7 @@ PHP_FUNCTION(exif_thumbnail)
ret = exif_read_file(&ImageInfo, p_name, 1, 0 TSRMLS_CC);
if (ret==FALSE) {
+ exif_discard_imageinfo(&ImageInfo);
RETURN_FALSE;
}