aboutsummaryrefslogtreecommitdiffstats
path: root/lib/decoding/osmocom/core
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2018-03-03 20:04:13 +0100
committerPiotr Krysik <ptrkrysik@gmail.com>2018-03-03 20:04:13 +0100
commitdaa26e80be9336c160f5b6361746169ca5ec8a44 (patch)
treeac52b93f91d4c401c256d6a8584a14e7000200d8 /lib/decoding/osmocom/core
parent1fd7cfb47e6ce013a3143d311a08300f2e989289 (diff)
Fixing 'free' position
Diffstat (limited to 'lib/decoding/osmocom/core')
-rw-r--r--lib/decoding/osmocom/core/conv_acc_generic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/decoding/osmocom/core/conv_acc_generic.c b/lib/decoding/osmocom/core/conv_acc_generic.c
index 7da0213..87b0e95 100644
--- a/lib/decoding/osmocom/core/conv_acc_generic.c
+++ b/lib/decoding/osmocom/core/conv_acc_generic.c
@@ -129,8 +129,9 @@ static void gen_path_metrics(int num_states, int16_t *sums,
new_sums[i] -= min;
}
- free(new_sums);
memcpy(sums, new_sums, num_states * sizeof(int16_t));
+ free(new_sums);
+
}
/* Not-aligned Memory Allocator */