Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
dalvik
Commits
c2f1b7f6
Commit
c2f1b7f6
authored
8 years ago
by
Aart Bik
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Download
Plain Diff
Merge "Fix resource leaks."
parents
ef028e72
f23d8797
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
libdex/SysUtil.cpp
libdex/SysUtil.cpp
+1
-0
libdex/sha1.cpp
libdex/sha1.cpp
+1
-0
No files found.
libdex/SysUtil.cpp
View file @
c2f1b7f6
...
...
@@ -126,6 +126,7 @@ int sysFakeMapFile(int fd, MemMapping* pMap)
if
(
read
(
fd
,
memPtr
,
length
)
<
0
)
{
ALOGW
(
"read(fd=%d, start=%d, length=%d) failed: %s"
,
(
int
)
length
,
fd
,
(
int
)
start
,
strerror
(
errno
));
free
(
memPtr
);
return
-
1
;
}
...
...
This diff is collapsed.
Click to expand it.
libdex/sha1.cpp
View file @
c2f1b7f6
...
...
@@ -388,6 +388,7 @@ int verifyfile(char *fname)
}
}
}
while
(
s
);
fclose
(
checkfile
);
return
found
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment