diff options
author | Antony Dovgal <tony2001@php.net> | 2007-02-16 13:28:03 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-02-16 13:28:03 +0000 |
commit | 01058e9770da3bb253f853aebd6d9d6f5ba4456a (patch) | |
tree | 4425082226a769e0d8ed46c0ed8a7adbc9c148cd /ext/imap | |
parent | 0262f05c17d41ed1c9e501c47650564376c9dba1 (diff) | |
download | php-git-01058e9770da3bb253f853aebd6d9d6f5ba4456a.tar.gz |
fix possible double free
Diffstat (limited to 'ext/imap')
-rw-r--r-- | ext/imap/php_imap.c | 2 |
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); } } |