[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r31120 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r31120 - gnunet/src/ats |
Date: |
Thu, 5 Dec 2013 23:23:05 +0100 |
Author: grothoff
Date: 2013-12-05 23:23:05 +0100 (Thu, 05 Dec 2013)
New Revision: 31120
Modified:
gnunet/src/ats/perf_ats_solver.c
Log:
-fix leak (rather theoretical one)
Modified: gnunet/src/ats/perf_ats_solver.c
===================================================================
--- gnunet/src/ats/perf_ats_solver.c 2013-12-05 22:19:11 UTC (rev 31119)
+++ gnunet/src/ats/perf_ats_solver.c 2013-12-05 22:23:05 UTC (rev 31120)
@@ -655,21 +655,27 @@
}
else if (MODE_RIL == ph.ats_mode)
{
- GNUNET_asprintf (&data, "plot '%s' using 1:%u with lines title 'Total time
to solve'\n" \
- "pause -1",
- data_fn, 3);
+ GNUNET_asprintf (&data,
+ "plot '%s' using 1:%u with lines title 'Total time to
solve'\n" \
+ "pause -1",
+ data_fn, 3);
}
- if ((NULL != data) && (GNUNET_SYSERR == GNUNET_DISK_file_write(f, data,
strlen(data))))
- {
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Cannot write data to plot file
`%s'\n", gfn);
- GNUNET_free (data);
- }
+ if ((NULL != data) &&
+ (GNUNET_SYSERR == GNUNET_DISK_file_write (f, data, strlen(data))))
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Cannot write data to plot file `%s'\n",
+ gfn);
+ GNUNET_free_non_null (data);
if (GNUNET_SYSERR == GNUNET_DISK_file_close(f))
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Cannot close gnuplot file `%s'\n",
gfn);
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Cannot close gnuplot file `%s'\n",
+ gfn);
else
- GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Data successfully written to plot
file `%s'\n", gfn);
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ "Data successfully written to plot file `%s'\n",
+ gfn);
GNUNET_free (gfn);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r31120 - gnunet/src/ats,
gnunet <=