git: netgraph7: Plug item allocation leak in ng_socket.

Nuno Antunes nant at crater.dragonflybsd.org
Fri Jul 11 02:43:28 PDT 2014


commit 3acc7e056d27f7465d34b79329b02ef7f1ab28c8
Author: Nuno Antunes <nuno.antunes at gmail.com>
Date:   Fri Jun 20 15:04:37 2014 +0100

    netgraph7: Plug item allocation leak in ng_socket.
    
    * ng_connect_data() allocates a dummy item (which will not be sent) to
      address the destination node and obtain reference on it.  This item
      needs to be freed before returning from this function, so use
      ng_free_item() instead of the NOP NG_FREE_ITEM.

Summary of changes:
 sys/netgraph7/socket/ng_socket.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3acc7e056d27f7465d34b79329b02ef7f1ab28c8


-- 
DragonFly BSD source repository



More information about the Commits mailing list