Browse code

tm: detect local uac transaction not inserted in the hash table

Daniel-Constantin Mierla authored on 07/06/2019 06:48:34
Showing 1 changed files
... ...
@@ -589,7 +589,8 @@ error2:
589 589
 	if (is_ack) {
590 590
 		free_cell(new_cell);
591 591
 	} else {
592
-		if(atomic_get_int(&new_cell->ref_count)==0) {
592
+		if((new_cell->next_c == 0 && new_cell->prev_c == 0)
593
+				|| (atomic_get_int(&new_cell->ref_count)==0)) {
593 594
 			free_cell(new_cell);
594 595
 		} else {
595 596
 			UNREF_FREE(new_cell, 0);