-
Type: Improvement
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
-
None
test/recovery/truncated_log.c:
145 while ((ret = logc->next(logc)) == 0) { 146 if ((ret = logc->get_key(logc, 147 &lsn.l.file, &lsn.l.offset, &unused)) != 0) 148 testutil_die(errno, "get_key"); 149 if (lsn.l.file < 2) 150 save_lsn = lsn; 151 else { 152 if (first) 153 testutil_die(EINVAL, 154 "min_key too high"); 155 if (fprintf(fp, 156 "%" PRIu32 " %" PRIu32 "\n", 157 save_lsn.l.offset, i - 1) == -1) 158 testutil_die(errno, "fprintf"); 159 if (fclose(fp) != 0) 160 testutil_die(errno, "fclose"); 161 abort(); 162 } 163 } 164 first = false; 165 } 11. Jumping back to the beginning of the loop 15. Jumping back to the beginning of the loop 22. Jumping back to the beginning of the loop 29. Jumping back to the beginning of the loop 166 } CID 1352898 (#1 of 1): Resource leak (RESOURCE_LEAK) 31. leaked_storage: Variable fp going out of scope leaks the storage it points to.
- is depended on by
-
SERVER-23140 WiredTiger changes for MongoDB 3.3.4
- Closed
- links to