File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ static void acmp_build_binary_tree(ACMP *parser, acmp_node_t *node) {
226226
227227 /* We have array with all children of the node and number of those children
228228 */
229- for (i = 0 ; i < count - 1 ; i++)
229+ for (i = 0 ; i < count - 1 ; i++) {
230230 for (j = i + 1 ; j < count; j++) {
231231 acmp_node_t *tmp;
232232
@@ -236,10 +236,11 @@ static void acmp_build_binary_tree(ACMP *parser, acmp_node_t *node) {
236236 nodes[i] = nodes[j];
237237 nodes[j] = tmp;
238238 }
239- if (node->btree != NULL ) {
240- free (node->btree );
241- node->btree = NULL ;
242- }
239+ }
240+ if (node->btree != NULL ) {
241+ free (node->btree );
242+ node->btree = NULL ;
243+ }
243244 node->btree = reinterpret_cast <acmp_btree_node_t *>(calloc (1 , sizeof (acmp_btree_node_t )));
244245
245246 /* ENH: Check alloc succeded */
You can’t perform that action at this time.
0 commit comments