diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2012-01-24 07:57:54 -0800 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-01-24 07:57:55 -0800 |
commit | e1dd6c88cff4f71c298921ef34f7662eb227aacf (patch) | |
tree | 57b3fd24ab9349f7810be8b03bbab7311ff827ab | |
parent | 8af338f520b04f8360a452875b9885374a1b7d29 (diff) | |
parent | ef65d7304685707e0f59d9863d5d54992b123ebc (diff) | |
download | fsck_msdos-e1dd6c88cff4f71c298921ef34f7662eb227aacf.tar.gz |
Merge "fix possible memory leaking"android-cts-4.1_r4android-cts-4.1_r2android-cts-4.1_r1android-4.1.2_r2.1android-4.1.2_r2android-4.1.2_r1android-4.1.1_r6.1android-4.1.1_r6android-4.1.1_r5android-4.1.1_r4android-4.1.1_r3android-4.1.1_r2android-4.1.1_r1.1android-4.1.1_r1jb-releasejb-mr0-releasejb-dev
-rw-r--r-- | dir.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -474,10 +474,12 @@ check_dot_dot(int f, struct bootblock *boot, struct fatEntry *fat,struct dosDirE 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; |