if(!ab_pkg->pkgs)
ab_pkg->pkgs = pkg_vec_alloc();
- /* pkg_vec_insert_merge might munge package, but it returns an unmunged pkg */
- pkg = pkg_vec_insert_merge(ab_pkg->pkgs, pkg, set_status,conf );
- pkg->parent = ab_pkg;
-
if (buildProvides(hash, ab_pkg, pkg)<0){
fprintf(stderr, "%s : This should never happen. Report this Bug in bugzilla please \n ",__FUNCTION__);
return NULL;
}
buildDependedUponBy(pkg, ab_pkg);
+
+ /* pkg_vec_insert_merge might munge package, but it returns an unmunged pkg */
+ pkg = pkg_vec_insert_merge(ab_pkg->pkgs, pkg, set_status,conf );
+ pkg->parent = ab_pkg;
+
return pkg;
}
void_list_elt_t * void_list_elt_new (void *data) {
void_list_elt_t *elt;
- /* freed in void_list_deinit */
+ /* freed in void_list_elt_deinit */
elt = calloc(1, sizeof(void_list_elt_t));
if (elt == NULL) {
fprintf(stderr, "%s: out of memory\n", __FUNCTION__);
{
list_del_init(&elt->node);
void_list_elt_init(elt, NULL);
+ free(elt);
}
int void_list_init(void_list_t *list)
while (!void_list_empty(list)) {
elt = void_list_pop(list);
void_list_elt_deinit(elt);
- /* malloced in void_list_append */
- free(elt);
}
INIT_LIST_HEAD(&list->head);
}
*iter = list_entry(pos->node.prev, void_list_elt_t, node);
void_list_elt_deinit(pos);
- free(pos);
return old_data;
}