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

Changeset 823461d3 in mainline


Ignore:
Timestamp:
2020-03-25T11:45:10Z (4 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
b742f8a, ec506d49
Parents:
f019125a
git-author:
Manuele Conti <manuele.conti@…> (2020-03-20 14:57:37)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2020-03-25 11:45:10)
Message:

Fix memory leaks in nic_wol_virtue_add_impl procedure by free virtue variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/nic/src/nic_impl.c

    rf019125a r823461d3  
    554554        if (nic_data->wol_virtues.caps_max[type] < 0) {
    555555                fibril_rwlock_write_unlock(&nic_data->wv_lock);
     556                free(virtue->data);
     557                free(virtue);
    556558                return EINVAL;
    557559        }
     
    559561            nic_data->wol_virtues.caps_max[type]) {
    560562                fibril_rwlock_write_unlock(&nic_data->wv_lock);
     563                free(virtue->data);
     564                free(virtue);
    561565                return ELIMIT;
    562566        }
Note: See TracChangeset for help on using the changeset viewer.