gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r13031 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r13031 - gnunet/src/transport
Date: Mon, 20 Sep 2010 12:12:30 +0200

Author: wachs
Date: 2010-09-20 12:12:30 +0200 (Mon, 20 Sep 2010)
New Revision: 13031

Modified:
   gnunet/src/transport/plugin_transport_http.c
Log:
removed malloc from curl_logger


Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c        2010-09-20 09:56:52 UTC 
(rev 13030)
+++ gnunet/src/transport/plugin_transport_http.c        2010-09-20 10:12:30 UTC 
(rev 13031)
@@ -53,8 +53,8 @@
 #endif
 
 #define DEBUG_HTTP GNUNET_NO
-#define DEBUG_CURL GNUNET_YES
-#define DEBUG_MHD GNUNET_YES
+#define DEBUG_CURL GNUNET_NO
+#define DEBUG_MHD GNUNET_NO
 #define DEBUG_CONNECTIONS GNUNET_NO
 #define DEBUG_SESSION_SELECTION GNUNET_NO
 #define DEBUG_SCHEDULING GNUNET_NO
@@ -1722,9 +1722,10 @@
  */
 int curl_logger (CURL * curl, curl_infotype type , char * data, size_t size , 
void * cls)
 {
+
        if (type == CURLINFO_TEXT)
        {
-               char * text = GNUNET_malloc(size+2);
+               char text[size+2];
                memcpy(text,data,size);
                if (text[size-1] == '\n')
                        text[size] = '\0';
@@ -1734,7 +1735,6 @@
                        text[size+1] = '\0';
                }
                GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,"CURL: Connection %X - %s", 
cls, text);
-               GNUNET_free(text);
        }
        return 0;
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]