]> granicus.if.org Git - php/commitdiff
Either I'm playing the EG(symbol_table) game wrong or var.c leaks memory
authorSascha Schumann <sas@php.net>
Fri, 28 May 1999 21:27:19 +0000 (21:27 +0000)
committerSascha Schumann <sas@php.net>
Fri, 28 May 1999 21:27:19 +0000 (21:27 +0000)
when unserializing arrays/objects. Still testing

ext/standard/var.c

index f7fa1fd5513b0d2b90600a0bd837cff46e7b34e4..53f95d4599058f85ff0854b0c9f69218504dbe5f 100644 (file)
@@ -355,6 +355,7 @@ int php3api_var_unserialize(pval **rval, char **p, char *max)
                                        return 0;
                                }
                                if (!php3api_var_unserialize(&data, p, max)) {
+                                       pval_destructor(key);
                                    efree(key);
                                        efree(data);
                                        return 0;