commit | e1dd6c88cff4f71c298921ef34f7662eb227aacf | [log] [tgz] |
---|---|---|
author | Jean-Baptiste Queru <jbq@google.com> | Tue Jan 24 07:57:54 2012 -0800 |
committer | android code review <noreply-gerritcodereview@google.com> | Tue Jan 24 07:57:55 2012 -0800 |
tree | 57b3fd24ab9349f7810be8b03bbab7311ff827ab | |
parent | 8af338f520b04f8360a452875b9885374a1b7d29 [diff] | |
parent | ef65d7304685707e0f59d9863d5d54992b123ebc [diff] |
Merge "fix possible memory leaking"
diff --git a/dir.c b/dir.c index b09ab53..7e4a567 100644 --- a/dir.c +++ b/dir.c
@@ -474,10 +474,12 @@ if (lseek64(f, off, SEEK_SET) != off) { printf("off = %llu\n", off); perror("Unable to lseek64"); + free(buf); return FSFATAL; } if (read(f, buf, last) != last) { perror("Unable to read"); + free(buf); return FSFATAL; } last /= 32;