Changeset 29720


Ignore:
Timestamp:
2012-01-12T11:15:18+01:00 (6 years ago)
Author:
nbd
Message:

libnl-tiny: fix a potential memleak in an error path

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/libnl-tiny/src/unl.c

    r25281 r29720  
    192192        unl_genl_request_single(unl, msg, &msg); 
    193193        if (!msg) 
    194                 goto nla_put_failure; 
     194                return -1; 
    195195 
    196196        groups = unl_find_attr(unl, msg, CTRL_ATTR_MCAST_GROUPS); 
    197197        if (!groups) 
    198                 goto fail; 
     198                goto nla_put_failure; 
    199199 
    200200        nla_for_each_nested(group, groups, rem) { 
     
    216216        } 
    217217 
    218 fail: 
     218nla_put_failure: 
    219219        nlmsg_free(msg); 
    220 nla_put_failure: 
    221220        return ret; 
    222221} 
Note: See TracChangeset for help on using the changeset viewer.