From: Michal Sojka Date: Mon, 5 May 2014 12:18:00 +0000 (+0200) Subject: Add missing FREE() X-Git-Url: https://rtime.felk.cvut.cz/gitweb/orte.git/commitdiff_plain/b0e7730c40e824a1464b857bc18efeb55e13b9e0 Add missing FREE() Thanks to Martin Strunz for noticing this. --- diff --git a/orte/liborte/ORTEPublication.c b/orte/liborte/ORTEPublication.c index 42b92b5..de0887e 100644 --- a/orte/liborte/ORTEPublication.c +++ b/orte/liborte/ORTEPublication.c @@ -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); diff --git a/orte/liborte/ORTESubscription.c b/orte/liborte/ORTESubscription.c index 08f7047..3cbc859 100644 --- a/orte/liborte/ORTESubscription.c +++ b/orte/liborte/ORTESubscription.c @@ -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);