[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r1043 - GNUnet/src/applications/fs/fsui
From: |
grothoff |
Subject: |
[GNUnet-SVN] r1043 - GNUnet/src/applications/fs/fsui |
Date: |
Sun, 26 Jun 2005 02:50:29 -0700 (PDT) |
Author: grothoff
Date: 2005-06-26 02:50:26 -0700 (Sun, 26 Jun 2005)
New Revision: 1043
Modified:
GNUnet/src/applications/fs/fsui/downloadtest.c
GNUnet/src/applications/fs/fsui/searchtest.c
Log:
fixes
Modified: GNUnet/src/applications/fs/fsui/downloadtest.c
===================================================================
--- GNUnet/src/applications/fs/fsui/downloadtest.c 2005-06-26 09:42:01 UTC
(rev 1042)
+++ GNUnet/src/applications/fs/fsui/downloadtest.c 2005-06-26 09:50:26 UTC
(rev 1043)
@@ -203,8 +203,10 @@
FAILURE:
if (ctx != NULL)
FSUI_stop(ctx);
- UNLINK(fn);
- FREE(fn);
+ if (fn != NULL) {
+ UNLINK(fn);
+ FREE(fn);
+ }
fn = makeName(43);
/* TODO: verify file 'fn(42)' == file 'fn(43)' */
UNLINK(fn);
Modified: GNUnet/src/applications/fs/fsui/searchtest.c
===================================================================
--- GNUnet/src/applications/fs/fsui/searchtest.c 2005-06-26 09:42:01 UTC
(rev 1042)
+++ GNUnet/src/applications/fs/fsui/searchtest.c 2005-06-26 09:50:26 UTC
(rev 1043)
@@ -105,8 +105,8 @@
pid_t daemon;
int status;
int ok;
- struct ECRS_URI * uri;
- char * fn;
+ struct ECRS_URI * uri = NULL;
+ char * fn = NULL;
char * keywords[] = {
"search_foo",
"search_bar",
@@ -198,10 +198,14 @@
/* END OF TEST CODE */
FAILURE:
+ if (uri != NULL)
+ ECRS_freeUri(uri);
if (ctx != NULL)
FSUI_stop(ctx);
- UNLINK(fn);
- FREE(fn);
+ if (fn != NULL) {
+ UNLINK(fn);
+ FREE(fn);
+ }
fn = makeName(43);
/* TODO: verify file 'fn(42)' == file 'fn(43)' */
UNLINK(fn);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r1043 - GNUnet/src/applications/fs/fsui,
grothoff <=