these talloc frames are freed *after* the return instruction and are
never executed. this fixes potential memory leaks.
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Tue Mar 1 12:08:40 CET 2016 on sn-devel-144
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
static PyObject *py_pdb_add_sam_account(pytalloc_Object *self, PyObject *args)
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
static PyObject *py_pdb_update_sam_account(pytalloc_Object *self, PyObject *args)
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
static PyObject *py_pdb_delete_sam_account(pytalloc_Object *self, PyObject *args)
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
static PyObject *py_pdb_rename_sam_account(pytalloc_Object *self, PyObject *args)
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
}
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
static PyObject *py_pdb_search_users(pytalloc_Object *self, PyObject *args)
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}
static PyMethodDef py_pdb_methods[] = {
return NULL;
}
- Py_RETURN_NONE;
talloc_free(frame);
+ Py_RETURN_NONE;
}