Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5ffaded authored by Rom Lemarchand's avatar Rom Lemarchand Committed by Android Git Automerger
Browse files

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

* commit '397a3642':
  fs_mgr: check that fstab is not NULL in fs_mgr_free_fstab
parents dfcbf02b 397a3642
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);