unnecessary, but clean up the open files properly.

Change-Id: I58f571fd00f914cba1102dd89d50dc08d917b671
This commit is contained in:
Koushik Dutta 2011-07-11 14:41:44 -07:00
parent 24c802b05e
commit 80cd7707c0

View File

@ -284,6 +284,7 @@ int main(int argc, char** argv) {
sprintf(blob_file, "%s/%s", blob_dir, md5);
if (ret = copy_file(filename, blob_file)) {
fprintf(stderr, "Unable to copy file %s\n", filename);
fclose(input_manifest);
return ret;
}
@ -311,6 +312,7 @@ int main(int argc, char** argv) {
}
else {
fprintf(stderr, "Unknown type %s\n", type);
fclose(input_manifest);
return 1;
}
}