projects
/
sort-networks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9781694
)
src/sn-evolution.c: Free the population before exiting.
author
Florian Forster
<octo@huhu.verplant.org>
Sat, 2 Feb 2008 00:01:56 +0000
(
01:01
+0100)
committer
Florian Forster
<octo@huhu.verplant.org>
Sat, 2 Feb 2008 00:01:56 +0000
(
01:01
+0100)
src/sn-evolution.c
patch
|
blob
|
history
diff --git
a/src/sn-evolution.c
b/src/sn-evolution.c
index
f43906e
..
d3184d9
100644
(file)
--- a/
src/sn-evolution.c
+++ b/
src/sn-evolution.c
@@
-245,6
+245,19
@@
int main (int argc, char **argv)
sn_network_show (population[best_index].network);
}
+ {
+ int i;
+
+ for (i = 0; i < population_size; i++)
+ {
+ sn_network_destroy (population[i].network);
+ population[i].network = NULL;
+ }
+
+ free (population);
+ population = 0;
+ }
+
return (0);
} /* int main */