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

Ignore:
File:
1 edited

Legend:

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

    raafed15 rca21f1e2  
    150150        prg->loader_status = elf_load((elf_header_t *) image_addr, as);
    151151        if (prg->loader_status != EE_OK) {
    152                 as_destroy(as);
     152                as_release(as);
    153153                prg->task = NULL;
    154154                prg->main_thread = NULL;
     
    176176        void *loader = program_loader;
    177177        if (!loader) {
    178                 as_destroy(as);
     178                as_release(as);
    179179                log(LF_OTHER, LVL_ERROR,
    180180                    "Cannot spawn loader as none was registered");
     
    184184        prg->loader_status = elf_load((elf_header_t *) program_loader, as);
    185185        if (prg->loader_status != EE_OK) {
    186                 as_destroy(as);
     186                as_release(as);
    187187                log(LF_OTHER, LVL_ERROR, "Cannot spawn loader (%s)",
    188188                    elf_error(prg->loader_status));
Note: See TracChangeset for help on using the changeset viewer.