[PATCH] possible memleak in attrib.c

Dennis Preiser <[email protected]> Wed, 25 Feb 2009 19:00:36 +0100
Newsgroups gmane.network.tin.devel
Message-ID <[email protected]>
Hello,

If at least one scope matches a group, memory for group->attribute is  
allocated in attrib.c:assign_attributes_to_groups().

After removing all scopes which matches the group, default_scope- 
 >attribute is assigned to group->attribute. The previously allocated  
memory is not free()ed.

The patch (against the latest snapshot) fixes this.

In 1.9.4 the user cannot delete a scope directly so this happens only  
if the attributes file is manually changed during runtime.

Dennis
20090225_attrib.c.diff.gz (application/x-gzip, 327 B) - not displayed