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

Changeset 0bbd13e in mainline


Ignore:
Timestamp:
2012-06-29T10:40:14Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
master
Children:
6843a9c, 72e1d6eb, d802671d, e6a78b9
Parents:
baf8fbb
Message:

isa: Fix memory leaks.

function name is str_duped

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/isa/isa.c

    rbaf8fbb r0bbd13e  
    201201
    202202        isa_fun_t *fun = ddf_fun_data_alloc(fnode, sizeof(isa_fun_t));
    203         if (fun == NULL)
     203        if (fun == NULL) {
     204                ddf_fun_destroy(fnode);
    204205                return NULL;
     206        }
    205207
    206208        fibril_mutex_initialize(&fun->mutex);
     
    552554
    553555        isa_fun_t *fun = isa_fun_create(isa, fun_name);
     556        free(fun_name);
    554557        if (fun == NULL) {
    555                 free(fun_name);
    556558                return NULL;
    557559        }
Note: See TracChangeset for help on using the changeset viewer.