[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r22980 - Extractor/src/main
From: |
gnunet |
Subject: |
[GNUnet-SVN] r22980 - Extractor/src/main |
Date: |
Mon, 30 Jul 2012 15:06:01 +0200 |
Author: grothoff
Date: 2012-07-30 15:06:01 +0200 (Mon, 30 Jul 2012)
New Revision: 22980
Modified:
Extractor/src/main/extractor_plugins.c
Log:
add reference counting for shm and destroy them when they are finished
Modified: Extractor/src/main/extractor_plugins.c
===================================================================
--- Extractor/src/main/extractor_plugins.c 2012-07-30 13:05:17 UTC (rev
22979)
+++ Extractor/src/main/extractor_plugins.c 2012-07-30 13:06:01 UTC (rev
22980)
@@ -381,7 +381,8 @@
prev->next = pos->next;
if (NULL != pos->channel)
EXTRACTOR_IPC_channel_destroy_ (pos->channel);
- if (0 == EXTRACTOR_IPC_shared_memory_change_rc_ (pos->shm, -1))
+ if ( (NULL != pos->shm) &&
+ (0 == EXTRACTOR_IPC_shared_memory_change_rc_ (pos->shm, -1)) )
EXTRACTOR_IPC_shared_memory_destroy_ (pos->shm);
free (pos->short_libname);
free (pos->libname);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r22980 - Extractor/src/main,
gnunet <=