Skip to content

Commit

Permalink
Fixing 'free' position
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrkrysik committed Mar 3, 2018
1 parent 1fd7cfb commit daa26e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/decoding/osmocom/core/conv_acc_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit daa26e8

Please sign in to comment.