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

Changeset 6b68625 in mainline


Ignore:
Timestamp:
2020-03-24T21:57:16Z (10 days ago)
Author:
Manuele Conti <manuele.conti@…>
Parents:
44dde42
git-author:
Manuele Conti <manuele.conti@…> (2020-03-20 14:57:37)
git-committer:
Manuele Conti <manuele.conti@…> (2020-03-24 21:57:16)
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

    r44dde42 r6b68625  
    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.