summaryrefslogtreecommitdiff
path: root/source3/lib/ldb/tools
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-23 18:08:13 +0100
committerVolker Lendecke <vl@samba.org>2008-03-23 18:28:24 +0100
commit3d28e7533f4513643762de5768f44b63033bca27 (patch)
tree0d07e27c4a89fff810e77b60e5e59ae25f753cc8 /source3/lib/ldb/tools
parent2e2f1d57b1d2732a9c67a65575a5e24876107ff6 (diff)
downloadsamba-3d28e7533f4513643762de5768f44b63033bca27.tar.gz
samba-3d28e7533f4513643762de5768f44b63033bca27.tar.bz2
samba-3d28e7533f4513643762de5768f44b63033bca27.zip
Fix Coverity ID 472
Simo, S4 also has this code. You might want to cherry-pick. Volker (This used to be commit 94c29f55937e50dcf49124d28ad4e82c7fb4133e)
Diffstat (limited to 'source3/lib/ldb/tools')
-rw-r--r--source3/lib/ldb/tools/ldbedit.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/lib/ldb/tools/ldbedit.c b/source3/lib/ldb/tools/ldbedit.c
index f8d180495b..0e1fd38e4c 100644
--- a/source3/lib/ldb/tools/ldbedit.c
+++ b/source3/lib/ldb/tools/ldbedit.c
@@ -319,12 +319,10 @@ int main(int argc, const char **argv)
do_edit(ldb, result->msgs, result->count, options->editor);
- if (result) {
- ret = talloc_free(result);
- if (ret == -1) {
- fprintf(stderr, "talloc_free failed\n");
- exit(1);
- }
+ ret = talloc_free(result);
+ if (ret == -1) {
+ fprintf(stderr, "talloc_free failed\n");
+ exit(1);
}
talloc_free(ldb);