Changeset 213 for trunk/lib/regfi.c


Ignore:
Timestamp:
03/25/11 11:48:27 (13 years ago)
Author:
tim
Message:

fixed some pyregfi parameter bugs
fixed some iterator memory management problems
updated smoketest script to use ctypes pyregfi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/regfi.c

    r209 r213  
    17801780  }
    17811781  ret_val->cur_key = root;
    1782   talloc_reference(ret_val, root);
     1782  talloc_reparent(NULL, ret_val, root);
    17831783
    17841784  ret_val->key_positions = void_stack_new(REGFI_MAX_DEPTH);
     
    18341834    return false;
    18351835  }
    1836   talloc_reference(i, subkey);
     1836  talloc_reparent(NULL, i, subkey);
    18371837
    18381838  i->cur_key = subkey;
     
    19201920const REGFI_NK* regfi_iterator_cur_key(REGFI_ITERATOR* i)
    19211921{
    1922   /* XXX: do we need to add a NULL talloc reference here? */
     1922  talloc_reference(NULL, i->cur_key);
    19231923  return i->cur_key;
    19241924}
Note: See TracChangeset for help on using the changeset viewer.