[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12532 - Extractor/src/main
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12532 - Extractor/src/main |
Date: |
Sat, 14 Aug 2010 22:09:56 +0200 |
Author: grothoff
Date: 2010-08-14 22:09:56 +0200 (Sat, 14 Aug 2010)
New Revision: 12532
Modified:
Extractor/src/main/extractor.c
Log:
fix leak on error
Modified: Extractor/src/main/extractor.c
===================================================================
--- Extractor/src/main/extractor.c 2010-08-14 19:58:45 UTC (rev 12531)
+++ Extractor/src/main/extractor.c 2010-08-14 20:09:56 UTC (rev 12532)
@@ -1783,21 +1783,30 @@
if (0 != extract_oop (ppos, fn,
(tptr != NULL) ? tfn : NULL,
proc, proc_cls))
- return;
+ {
+ ppos = NULL;
+ break;
+ }
if (ppos->cpid == -1)
{
start_process (ppos);
if (0 != extract_oop (ppos, fn,
(tptr != NULL) ? tfn : NULL,
proc, proc_cls))
- return;
+ {
+ ppos = NULL;
+ break;
+ }
}
break;
case EXTRACTOR_OPTION_OUT_OF_PROCESS_NO_RESTART:
if (0 != extract_oop (ppos, fn,
(tptr != NULL) ? tfn : NULL,
proc, proc_cls))
- return;
+ {
+ ppos = NULL;
+ break;
+ }
break;
case EXTRACTOR_OPTION_IN_PROCESS:
want_tail = ( (ppos->specials != NULL) &&
@@ -1818,7 +1827,10 @@
proc,
proc_cls,
ppos->plugin_options)) )
- return;
+ {
+ ppos = NULL;
+ break;
+ }
}
else
{
@@ -1828,7 +1840,10 @@
proc,
proc_cls,
ppos->plugin_options)) )
- return;
+ {
+ ppos = NULL;
+ break;
+ }
}
}
break;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12532 - Extractor/src/main,
gnunet <=