aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-auto-share.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/gnunet-auto-share.c')
-rw-r--r--src/fs/gnunet-auto-share.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/gnunet-auto-share.c b/src/fs/gnunet-auto-share.c
index b001cb58c..2106d67f1 100644
--- a/src/fs/gnunet-auto-share.c
+++ b/src/fs/gnunet-auto-share.c
@@ -208,7 +208,7 @@ load_state ()
208 (GNUNET_OK != 208 (GNUNET_OK !=
209 GNUNET_BIO_read (rh, "id", &id, sizeof (struct GNUNET_HashCode))) ) 209 GNUNET_BIO_read (rh, "id", &id, sizeof (struct GNUNET_HashCode))) )
210 goto error; 210 goto error;
211 wi = GNUNET_malloc (sizeof (struct WorkItem)); 211 wi = GNUNET_new (struct WorkItem);
212 wi->id = id; 212 wi->id = id;
213 wi->filename = fn; 213 wi->filename = fn;
214 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 214 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -605,7 +605,7 @@ add_file (void *cls,
605 } 605 }
606 else 606 else
607 { 607 {
608 wi = GNUNET_malloc (sizeof (struct WorkItem)); 608 wi = GNUNET_new (struct WorkItem);
609 wi->filename = GNUNET_strdup (filename); 609 wi->filename = GNUNET_strdup (filename);
610 } 610 }
611 wi->id = id; 611 wi->id = id;