[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9581 - in GNUnet/src: applications/chat/tools applications
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9581 - in GNUnet/src: applications/chat/tools applications/fs/fsui applications/fs/namespace applications/fs/tools applications/fs/uritrack util/pseudonym |
Date: |
Wed, 18 Nov 2009 16:37:38 -0700 |
Author: grothoff
Date: 2009-11-18 16:37:38 -0700 (Wed, 18 Nov 2009)
New Revision: 9581
Modified:
GNUnet/src/applications/chat/tools/gnunet-chat.c
GNUnet/src/applications/fs/fsui/upload.c
GNUnet/src/applications/fs/namespace/uri.c
GNUnet/src/applications/fs/tools/gnunet-auto-share.c
GNUnet/src/applications/fs/tools/gnunet-pseudonym.c
GNUnet/src/applications/fs/uritrack/uri_info.c
GNUnet/src/util/pseudonym/names.c
Log:
misc bugfixes
Modified: GNUnet/src/applications/chat/tools/gnunet-chat.c
===================================================================
--- GNUnet/src/applications/chat/tools/gnunet-chat.c 2009-11-18 18:16:06 UTC
(rev 9580)
+++ GNUnet/src/applications/chat/tools/gnunet-chat.c 2009-11-18 23:37:38 UTC
(rev 9581)
@@ -347,6 +347,7 @@
&pos->pkey, &seq))
fprintf (stderr, _("Failed to send message.\n"));
GNUNET_mutex_unlock (lock);
+ GNUNET_free (user);
return GNUNET_OK;
}
Modified: GNUnet/src/applications/fs/fsui/upload.c
===================================================================
--- GNUnet/src/applications/fs/fsui/upload.c 2009-11-18 18:16:06 UTC (rev
9580)
+++ GNUnet/src/applications/fs/fsui/upload.c 2009-11-18 23:37:38 UTC (rev
9581)
@@ -237,6 +237,7 @@
GNUNET_GE_ERROR | GNUNET_GE_USER |
GNUNET_GE_BULK, "write", tempName);
*error = GNUNET_strdup (GNUNET_GE_memory_get (mem, 0));
+ GNUNET_free (tempName);
GNUNET_GE_free_context (ee);
GNUNET_GE_memory_free (mem);
GNUNET_free (data);
Modified: GNUnet/src/applications/fs/namespace/uri.c
===================================================================
--- GNUnet/src/applications/fs/namespace/uri.c 2009-11-18 18:16:06 UTC (rev
9580)
+++ GNUnet/src/applications/fs/namespace/uri.c 2009-11-18 23:37:38 UTC (rev
9581)
@@ -55,6 +55,7 @@
strcat (ret, ": ");
strcat (ret, id);
GNUNET_free (id);
+ GNUNET_free (name);
return ret;
}
Modified: GNUnet/src/applications/fs/tools/gnunet-auto-share.c
===================================================================
--- GNUnet/src/applications/fs/tools/gnunet-auto-share.c 2009-11-18
18:16:06 UTC (rev 9580)
+++ GNUnet/src/applications/fs/tools/gnunet-auto-share.c 2009-11-18
23:37:38 UTC (rev 9581)
@@ -382,6 +382,7 @@
}
MUNMAP (buf, size);
CLOSE (fd);
+ GNUNET_free (record_fn);
return ret;
}
@@ -442,6 +443,7 @@
}
MUNMAP (buf, size);
CLOSE (fd);
+ GNUNET_free (record_fn);
}
static struct FileRecord *
Modified: GNUnet/src/applications/fs/tools/gnunet-pseudonym.c
===================================================================
--- GNUnet/src/applications/fs/tools/gnunet-pseudonym.c 2009-11-18 18:16:06 UTC
(rev 9580)
+++ GNUnet/src/applications/fs/tools/gnunet-pseudonym.c 2009-11-18 23:37:38 UTC
(rev 9581)
@@ -146,7 +146,6 @@
printf (_("Namespace `%s' (%s) has rating %d.\n"),
namespaceName, (char *) &enc, rating);
printMeta (md);
- GNUNET_free (namespaceName);
if (set_rating != NULL)
{
int delta;
@@ -184,6 +183,7 @@
}
}
printf ("\n");
+ GNUNET_free (namespaceName);
return GNUNET_OK;
}
Modified: GNUnet/src/applications/fs/uritrack/uri_info.c
===================================================================
--- GNUnet/src/applications/fs/uritrack/uri_info.c 2009-11-18 18:16:06 UTC
(rev 9580)
+++ GNUnet/src/applications/fs/uritrack/uri_info.c 2009-11-18 23:37:38 UTC
(rev 9581)
@@ -80,12 +80,17 @@
GNUNET_free (s);
s = getDBName (cfg);
if (GNUNET_NO == GNUNET_disk_file_test (ectx, s))
- return GNUNET_URITRACK_FRESH;
+ {
+ GNUNET_free (s);
+ return GNUNET_URITRACK_FRESH;
+ }
size = getDBSize (cfg);
fd = GNUNET_disk_file_open (ectx, s, O_RDONLY);
- GNUNET_free (s);
if (fd == -1)
- return GNUNET_URITRACK_FRESH;
+ {
+ GNUNET_free (s);
+ return GNUNET_URITRACK_FRESH;
+ }
o = 2 * (crc % size);
if (o != LSEEK (fd, o, SEEK_SET))
{
@@ -94,8 +99,10 @@
GNUNET_GE_ADMIN | GNUNET_GE_BULK, "lseek",
s);
CLOSE (fd);
+ GNUNET_free (s);
return GNUNET_URITRACK_FRESH;
}
+ GNUNET_free (s);
if (2 != read (fd, io, 2))
{
CLOSE (fd);
Modified: GNUnet/src/util/pseudonym/names.c
===================================================================
--- GNUnet/src/util/pseudonym/names.c 2009-11-18 18:16:06 UTC (rev 9580)
+++ GNUnet/src/util/pseudonym/names.c 2009-11-18 23:37:38 UTC (rev 9581)
@@ -84,11 +84,17 @@
if (GNUNET_OK != GNUNET_disk_file_size (ectx, fn, &len, GNUNET_YES))
{
GNUNET_GE_BREAK (ectx, 0);
+ GNUNET_free (fn);
+ GNUNET_free (name);
return NULL;
}
fd = GNUNET_disk_file_open (ectx, fn, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
if (-1 == fd)
- return NULL;
+ {
+ GNUNET_free (fn);
+ GNUNET_free (name);
+ return NULL;
+ }
i = 0;
idx = -1;
while ((len >= sizeof (GNUNET_HashCode)) &&
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9581 - in GNUnet/src: applications/chat/tools applications/fs/fsui applications/fs/namespace applications/fs/tools applications/fs/uritrack util/pseudonym,
gnunet <=