am 397a3642: fs_mgr: check that fstab is not NULL in fs_mgr_free_fstab

* commit '397a3642145dbd0919f8148ff24f0cafe1714b55':
  fs_mgr: check that fstab is not NULL in fs_mgr_free_fstab
This commit is contained in:
Rom Lemarchand 2013-09-24 10:57:33 -07:00 committed by Android Git Automerger
commit b5ffadedd4
1 changed files with 4 additions and 0 deletions

View File

@ -377,6 +377,10 @@ void fs_mgr_free_fstab(struct fstab *fstab)
{
int i;
if (!fstab) {
return;
}
for (i = 0; i < fstab->num_entries; i++) {
/* Free the pointers return by strdup(3) */
free(fstab->recs[i].blk_device);