Changeset 823461d3 in mainline for uspace/lib/nic/src/nic_impl.c


Ignore:
Timestamp:
2020-03-25T11:45:10Z (4 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.