]> rtime.felk.cvut.cz Git - orte.git/commitdiff
Add missing FREE()
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 5 May 2014 12:18:00 +0000 (14:18 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 5 May 2014 12:18:00 +0000 (14:18 +0200)
Thanks to Martin Strunz <martfi@aol.com> for noticing
this.

orte/liborte/ORTEPublication.c
orte/liborte/ORTESubscription.c

index 42b92b5605c5058d90e8c4439b06f66b7e04d2ed..de0887e58b34f56f5bd927efb982de0f2475c287 100644 (file)
@@ -62,6 +62,7 @@ ORTEPublicationCreate(ORTEDomain *d,const char *topic,const char *typeName,
     pthread_rwlock_unlock(&d->objectEntry.htimRootLock);
     printf("before call ORTEPublicationCreate is necessary to register \n\
             ser./deser. function for a given typeName!!!\n");
+    FREE(cstWriter);
     return NULL;
   }  
   pthread_rwlock_wrlock(&d->publications.lock);
index 08f704758b4dcae42ef3eed0163f018bbcd3b746..3cbc8596a20b7cea3902b2940291f4110e5e18ee 100644 (file)
@@ -60,6 +60,7 @@ ORTESubscriptionCreate(ORTEDomain *d,SubscriptionMode mode,SubscriptionType sTyp
     pthread_rwlock_unlock(&d->objectEntry.htimRootLock);
     printf("before call ORTESubscriptionCreateBestEffort is necessary to register \n\
             ser./deser. function for a given typeName!!!\n");
+    FREE(cstReader);
     return NULL;
   }  
   pthread_rwlock_wrlock(&d->subscriptions.lock);