[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-630502 ] netsnmp_table_dataset_remove_row free's
From:       noreply () sourceforge ! net
Date:       2002-10-29 14:50:39
[Download RAW message or body]

Bugs item #630502, was opened at 2002-10-29 15:50
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=630502&group_id=12694

Category: agent
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Peter Ellehauge (triguy)
Assigned to: Nobody/Anonymous (nobody)
Summary: netsnmp_table_dataset_remove_row free's 

Initial Comment:
/** removes a row from the table, but doesn't
delete/free anything */
inline void
netsnmp_table_dataset_remove_row(netsnmp_table_data_set
*table,
                                 netsnmp_table_row *row)
{
    if (!table)
        return;

   
netsnmp_table_data_remove_and_delete_row(table->table,
row);
}

the comments states that the function removes but
doesn't free anything. the function name implies the
same but the function removes and *deletes* the data.

So I think the call should be changed to

netsnmp_table_data_remove_row(table->table, row);

/peter

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=630502&group_id=12694


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic