diff options
-rw-r--r-- | source3/utils/regedit.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/utils/regedit.c b/source3/utils/regedit.c index 554c31e089..14215cb775 100644 --- a/source3/utils/regedit.c +++ b/source3/utils/regedit.c @@ -353,7 +353,11 @@ int main(int argc, char **argv) /* some simple tests */ rv = reg_open_samba3(frame, &ctx); - SMB_ASSERT(W_ERROR_IS_OK(rv)); + if (!W_ERROR_IS_OK(rv)) { + TALLOC_FREE(frame); + + return 1; + } display_test_window(frame, ctx); |