r13155: Large amount of updates to smbclient to:
[jelmer/samba4-debian.git] / source / client / tree.c
index 94fd93c21062c7bf5c5839d1715d49c4f8544573..9776ce2ef74d27b86b6204e71b667899d88ea933 100644 (file)
@@ -129,7 +129,7 @@ char *get_path(GtkWidget *item)
 
 struct tree_data *make_tree_data(guint32 type, const char *name)
 {
-  struct tree_data *p = (struct tree_data *)malloc(sizeof(struct tree_data));
+  struct tree_data *p = malloc_p(struct tree_data);
 
   if (p) {