aboutsummaryrefslogtreecommitdiff
path: root/src/util/configuration.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-12-10 12:20:20 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-12-10 12:20:20 +0000
commit344f4d39b52c36c31ad8850c5f380357624c2847 (patch)
treef970dbb768aedc4a4db77ba6e76cfe663e466e42 /src/util/configuration.c
parent42dcc63dba10ae9cd9801bbbb1b2f58756e6ecd4 (diff)
downloadgnunet-344f4d39b52c36c31ad8850c5f380357624c2847.tar.gz
gnunet-344f4d39b52c36c31ad8850c5f380357624c2847.zip
mem leak in line 193configuration.c
Diffstat (limited to 'src/util/configuration.c')
-rw-r--r--src/util/configuration.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/configuration.c b/src/util/configuration.c
index 5072ba5ad..1088fac2a 100644
--- a/src/util/configuration.c
+++ b/src/util/configuration.c
@@ -234,6 +234,7 @@ GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg,
234 if (GNUNET_OK != GNUNET_CONFIGURATION_parse (cfg, value)) 234 if (GNUNET_OK != GNUNET_CONFIGURATION_parse (cfg, value))
235 { 235 {
236 ret = GNUNET_SYSERR; /* failed to parse included config */ 236 ret = GNUNET_SYSERR; /* failed to parse included config */
237 GNUNET_free_non_null (line_orig);
237 break; 238 break;
238 } 239 }
239 } 240 }
@@ -242,6 +243,7 @@ GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg,
242 LOG (GNUNET_ERROR_TYPE_DEBUG, 243 LOG (GNUNET_ERROR_TYPE_DEBUG,
243 "Ignoring parsing @INLINE@ configurations, not allowed!\n"); 244 "Ignoring parsing @INLINE@ configurations, not allowed!\n");
244 ret = GNUNET_SYSERR; 245 ret = GNUNET_SYSERR;
246 GNUNET_free_non_null (line_orig);
245 break; 247 break;
246 } 248 }
247 continue; 249 continue;
@@ -291,9 +293,11 @@ GNUNET_CONFIGURATION_deserialize (struct GNUNET_CONFIGURATION_Handle *cfg,
291 _("Syntax error while deserializing in line %u\n"), 293 _("Syntax error while deserializing in line %u\n"),
292 nr); 294 nr);
293 ret = GNUNET_SYSERR; 295 ret = GNUNET_SYSERR;
296 GNUNET_free_non_null (line_orig);
294 break; 297 break;
295 } 298 }
296 LOG (GNUNET_ERROR_TYPE_DEBUG, "Finished deserializing config\n", tag); 299 LOG (GNUNET_ERROR_TYPE_DEBUG, "Finished deserializing config\n", tag);
300 GNUNET_free_non_null (line_orig);
297 GNUNET_free (section); 301 GNUNET_free (section);
298 GNUNET_assert ( (GNUNET_OK != ret) || (r_bytes == size) ); 302 GNUNET_assert ( (GNUNET_OK != ret) || (r_bytes == size) );
299 return ret; 303 return ret;