/*
Bacula® - The Network Backup Solution
- Copyright (C) 2007 Kern Sibbald
+ Copyright (C) 2007-2011 Kern Sibbald
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
This program is Free Software; you can redistribute it and/or
- modify it under the terms of version two of the GNU General Public
+ modify it under the terms of version three of the GNU Affero General Public
License as published by the Free Software Foundation, which is
listed in the file LICENSE.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
- You should have received a copy of the GNU General Public License
+ You should have received a copy of the GNU Affero General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301, USA.
* Program to convert uid and gid into names, and cache the results
* for preformance reasons.
*
- * Version $Id$
*/
#include "bacula.h"
}
fitem = (guitem *)uid_list->binary_insert(item, uid_compare);
if (fitem != item) { /* item already there this shouldn't happen */
+ free(item->name);
free(item);
item = fitem;
}
}
fitem = (guitem *)gid_list->binary_insert(item, gid_compare);
if (fitem != item) { /* item already there this shouldn't happen */
+ free(item->name);
free(item);
item = fitem;
}
}
free_guid_list(list);
- sm_dump(false);
+ sm_dump(false); /* unit test */
return 0;
}