diff options
author | Piotr Krysik <ptrkrysik@gmail.com> | 2018-03-03 20:04:13 +0100 |
---|---|---|
committer | Piotr Krysik <ptrkrysik@gmail.com> | 2018-03-03 20:04:13 +0100 |
commit | daa26e80be9336c160f5b6361746169ca5ec8a44 (patch) | |
tree | ac52b93f91d4c401c256d6a8584a14e7000200d8 /lib | |
parent | 1fd7cfb47e6ce013a3143d311a08300f2e989289 (diff) |
Fixing 'free' position
Diffstat (limited to 'lib')
-rw-r--r-- | lib/decoding/osmocom/core/conv_acc_generic.c | 3 |
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 */ |