]> granicus.if.org Git - php/commitdiff
Fixed a memory leak inside imap_utf8()
authorIlia Alshanetsky <iliaa@php.net>
Tue, 13 Feb 2007 20:12:52 +0000 (20:12 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 13 Feb 2007 20:12:52 +0000 (20:12 +0000)
ext/imap/php_imap.c

index 3397a2146f0070061235b05b3c17aa60532b2826..c1006f1435346a81e68d491d97d4e11e32759417 100644 (file)
@@ -2215,6 +2215,9 @@ PHP_FUNCTION(imap_utf8)
        if (dest.data) {
                free(dest.data);
        }
+       if (src.data) {
+               free(src.data);
+       }
 }
 /* }}} */