Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset e190e640 in mainline


Ignore:
Timestamp:
2014-08-24T20:19:27Z (6 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
master
Children:
9222f9b
Parents:
4a99c57
Message:

Fix dangling pointer in error paths in program_create

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/program.c

    r4a99c57 re190e640  
    9191        if (!area) {
    9292                task_destroy(prg->task);
     93                prg->task = NULL;
    9394                return ENOMEM;
    9495        }
     
    113114                as_area_destroy(as, virt);
    114115                task_destroy(prg->task);
     116                prg->task = NULL;
    115117                return ELIMIT;
    116118        }
Note: See TracChangeset for help on using the changeset viewer.