summaryrefslogtreecommitdiff
path: root/source4/gtk/common/select.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-05-03 10:05:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:05:34 -0500
commit0bcfa67f0e36e65f5d14a5d1f8592a7ad943761f (patch)
tree5b90b5f971d4924e5342f4dec8cd41a4cf3e4c3f /source4/gtk/common/select.c
parent38efc3e0d5dcd8a32f43729ff0a2d0a025cd10fc (diff)
downloadsamba-0bcfa67f0e36e65f5d14a5d1f8592a7ad943761f.tar.gz
samba-0bcfa67f0e36e65f5d14a5d1f8592a7ad943761f.tar.bz2
samba-0bcfa67f0e36e65f5d14a5d1f8592a7ad943761f.zip
r15410: Fix segfaults
(This used to be commit e8de80afb9d13c5c84bf70c9de3083d8caba9eb8)
Diffstat (limited to 'source4/gtk/common/select.c')
-rw-r--r--source4/gtk/common/select.c4
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;
}