[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9858 - GNUnet/src/applications/fs/fsui
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9858 - GNUnet/src/applications/fs/fsui |
Date: |
Tue, 22 Dec 2009 09:12:43 +0100 |
Author: grothoff
Date: 2009-12-22 09:12:43 +0100 (Tue, 22 Dec 2009)
New Revision: 9858
Modified:
GNUnet/src/applications/fs/fsui/upload.c
Log:
fixing memory leak
Modified: GNUnet/src/applications/fs/fsui/upload.c
===================================================================
--- GNUnet/src/applications/fs/fsui/upload.c 2009-12-22 08:10:49 UTC (rev
9857)
+++ GNUnet/src/applications/fs/fsui/upload.c 2009-12-22 08:12:43 UTC (rev
9858)
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet.
- (C) 2001, 2002, 2003, 2004, 2006 Christian Grothoff (and other
contributing authors)
+ (C) 2001, 2002, 2003, 2004, 2006m 2009 Christian Grothoff (and other
contributing authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
@@ -550,15 +550,11 @@
event.data.UploadCompleted.filename = utc->filename;
if (loc != NULL)
- {
- event.data.UploadCompleted.uri = GNUNET_ECRS_uri_duplicate(loc);
- GNUNET_ECRS_uri_destroy (loc);
- loc = NULL;
- }
+ event.data.UploadCompleted.uri = loc;
else
event.data.UploadCompleted.uri = utc->uri;
-
utc->shared->ctx->ecb (utc->shared->ctx->ecbClosure, &event);
+ GNUNET_ECRS_uri_destroy (loc);
if (utc->child != NULL)
UNLINK (filename);
GNUNET_free (filename);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9858 - GNUnet/src/applications/fs/fsui,
gnunet <=