diff options
Diffstat (limited to 'source4/gtk/common/select.c')
-rw-r--r-- | source4/gtk/common/select.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/gtk/common/select.c b/source4/gtk/common/select.c index 0547525cf3..5a0480ab28 100644 --- a/source4/gtk/common/select.c +++ b/source4/gtk/common/select.c @@ -293,11 +293,13 @@ struct dcerpc_pipe *gtk_connect_rpc_interface(TALLOC_CTX *mem_ctx, const struct if(!NT_STATUS_IS_OK(status)) { gtk_show_ntstatus(NULL, "While connecting to interface", status); gtk_widget_destroy(GTK_WIDGET(d)); - talloc_free(mem_ctx); + talloc_free(cred); return NULL; } gtk_widget_destroy(GTK_WIDGET(d)); + + talloc_free(cred); return pipe; } |