Skip to content

Commit 035e5e8

Browse files
bernhardurocallahan
authored andcommitted
Avoid leak in check_outside_mappings.
1 parent f85267d commit 035e5e8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/record_syscall.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6326,6 +6326,7 @@ static void check_outside_mappings(const KernelMapping& tracee_km, const RecordS
63266326
printf("rr: Warning: Mapping of file %s could cause diversion when replaying, "
63276327
"because pid=%d has mapped it outside of the recording.\n",
63286328
km.fsname().c_str(), pid);
6329+
closedir(proc);
63296330
return;
63306331
}
63316332
}

0 commit comments

Comments
 (0)