s4:dsdb/pydsdb.c - clean up memory handling
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 12 Dec 2010 17:31:37 +0000 (18:31 +0100)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Sun, 12 Dec 2010 19:06:24 +0000 (20:06 +0100)
commitb974966cc2b4d0b5b0d83206070b5f7c5c6495d1
tree79d8f7232c1f80047fa1ca6e636a44c649068c57
parentb56a6f2eda228698a2433ea2365fda5967bd904c
s4:dsdb/pydsdb.c - clean up memory handling

- Remove memory contexts when not really useful (if only one allocation)
- Try to find out OOM conditions and return correct error codes
- Move the parameter parsing always to the beginning (to prevent
  unneeded allocations in case of errors)
source4/dsdb/pydsdb.c