Introduction
Introduction Statistics Contact Development Disclaimer Help
tsimulation.c: do not free input grain in sim_add_grain - granular - granular d…
git clone git://src.adamsgaard.dk/granular
Log
Files
Refs
README
LICENSE
---
commit 6d6eafcf901cd2d9e177a7052201542998a68fd6
parent ef57b07c2e15ce74ff97b4923c847277af1032f3
Author: Anders Damsgaard <[email protected]>
Date: Thu, 8 Apr 2021 22:31:53 +0200
simulation.c: do not free input grain in sim_add_grain
Diffstat:
M simulation.c | 1 -
1 file changed, 0 insertions(+), 1 deletion(-)
---
diff --git a/simulation.c b/simulation.c
t@@ -58,7 +58,6 @@ sim_add_grain(struct simulation *sim, struct grain *g)
if (!(sim->grains = xreallocarray(sim->grains, sim->ng + 1, sizeof(*g)…
err(1, "%s: sim.grains reallocarray", __func__);
memcpy(&sim->grains[sim->ng++], g, sizeof(*g));
- free(g);
}
void
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.