jsoninfo: use the plugin name in a malloc call
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 26 Nov 2015 19:04:03 +0000 (20:04 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Fri, 27 Nov 2015 09:17:22 +0000 (10:17 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/jsoninfo/src/olsrd_jsoninfo.c

index 0ab4f3a..1655553 100644 (file)
@@ -1412,7 +1412,7 @@ static void send_info(unsigned int send_what, int the_socket) {
     header_len = build_http_header(HTTP_200, content_type, abuf.len, header_buf, sizeof(header_buf));
   }
 
-  outbuffer[outbuffer_count] = olsr_malloc(header_len + abuf.len, "json output buffer");
+  outbuffer[outbuffer_count] = olsr_malloc(header_len + abuf.len, PLUGIN_NAME" output buffer");
   outbuffer_size[outbuffer_count] = header_len + abuf.len;
   outbuffer_written[outbuffer_count] = 0;
   outbuffer_socket[outbuffer_count] = the_socket;