summaryrefslogtreecommitdiff
path: root/ext/imap
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-02-16 13:28:03 +0000
committerAntony Dovgal <tony2001@php.net>2007-02-16 13:28:03 +0000
commit01058e9770da3bb253f853aebd6d9d6f5ba4456a (patch)
tree4425082226a769e0d8ed46c0ed8a7adbc9c148cd /ext/imap
parent0262f05c17d41ed1c9e501c47650564376c9dba1 (diff)
downloadphp-git-01058e9770da3bb253f853aebd6d9d6f5ba4456a.tar.gz
fix possible double free
Diffstat (limited to 'ext/imap')
-rw-r--r--ext/imap/php_imap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index 48200fd5b4..6e576a9fa9 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -2215,7 +2215,7 @@ PHP_FUNCTION(imap_utf8)
if (dest.data) {
free(dest.data);
}
- if (src.data) {
+ if (src.data && src.data != dest.data) {
free(src.data);
}
}