Chromium Code Reviews| Index: runtime/bin/gen_snapshot.cc |
| =================================================================== |
| --- runtime/bin/gen_snapshot.cc (revision 13746) |
| +++ runtime/bin/gen_snapshot.cc (working copy) |
| @@ -357,7 +357,6 @@ |
| snapshot_buffer, |
| NULL, |
| &error); |
| - free(snapshot_buffer); |
| if (isolate == NULL) { |
| fprintf(stderr, "%s", error); |
| free(error); |
|
Ivan Posva
2012/10/18 05:45:52
"Leaking" the snapshot_buffer here.
siva
2012/10/18 17:55:43
Fixing in a new CL.
On 2012/10/18 05:45:52, Ivan
|
| @@ -384,6 +383,8 @@ |
| // Now create and write snapshot of script. |
| CreateAndWriteSnapshot(true); |
| + |
| + free(snapshot_buffer); |
| } |
| } else { |
| SetupForGenericSnapshotCreation(); |