diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-15 13:01:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-15 13:01:56 +0000 |
commit | aa9d926aadca2a8a67ed09f9031f7652297cad44 (patch) | |
tree | 2ba1e5a7f7734dcb252f7abc28cb30765e736532 /src/fs/fs_api.c | |
parent | 38f32265e48027874ea93d20a74cf12d606e772e (diff) |
-check return values, fix leak
Diffstat (limited to 'src/fs/fs_api.c')
-rw-r--r-- | src/fs/fs_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c index 669b8cc39f..42bfaed3cc 100644 --- a/src/fs/fs_api.c +++ b/src/fs/fs_api.c @@ -1985,6 +1985,7 @@ deserialize_unindex_file (void *cls, const char *filename) GNUNET_break (0); goto cleanup; } + uris = NULL; if ((GNUNET_OK != GNUNET_BIO_read_string (rh, "unindex-fn", &uc->filename, 10 * 1024)) || (GNUNET_OK != GNUNET_BIO_read_int64 (rh, &uc->file_size)) || @@ -1994,6 +1995,7 @@ deserialize_unindex_file (void *cls, const char *filename) (GNUNET_OK != GNUNET_BIO_read_string (rh, "unindex-kskuri", &uris, 10 * 1024)) || (GNUNET_OK != GNUNET_BIO_read_int32 (rh, &uc->ksk_offset)) ) { + GNUNET_free_non_null (uris); GNUNET_break (0); goto cleanup; } |