From bcb360a975246117ab903c83fe81463e5cde1d74 Mon Sep 17 00:00:00 2001 From: "Habil, Ardalan (arhab001)" <ardalan.habil@uni-duesseldorf.de> Date: Wed, 16 Nov 2016 22:27:07 +0100 Subject: [PATCH] Update sybilSBML.c Annotation Bug --- src/sybilSBML.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/sybilSBML.c b/src/sybilSBML.c index bf7c09b..b14f9cd 100644 --- a/src/sybilSBML.c +++ b/src/sybilSBML.c @@ -1576,8 +1576,8 @@ void ParseModtoAnno (SBase_t* comp , char* Mannocopy) if(strncmp("bqbiol", ptr, strlen("bqbiol")) == 0) { - if (first != 0) SBase_addCVTerm((SBase_t*)comp, cv); - + if (first != 0){ SBase_addCVTerm((SBase_t*)comp, cv);CVTerm_free(cv);} + //CVTerm_free(cv); quali = strcpy(&ptr[0],&ptr[7]); cv = CVTerm_createWithQualifierType(BIOLOGICAL_QUALIFIER); CVTerm_setBiologicalQualifierTypeByString( cv, (const char*) quali); @@ -1585,7 +1585,8 @@ void ParseModtoAnno (SBase_t* comp , char* Mannocopy) } else if(strncmp("bqmodel", ptr, strlen("bqmodel")) == 0) { - if (first != 0) SBase_addCVTerm((SBase_t*)comp, cv); + if (first != 0) { SBase_addCVTerm((SBase_t*)comp, cv);CVTerm_free(cv);} + //CVTerm_free(cv); quali = strcpy(&ptr[0],&ptr[8]); cv = CVTerm_createWithQualifierType(MODEL_QUALIFIER); CVTerm_setModelQualifierTypeByString( cv, (const char*) quali); @@ -2293,4 +2294,4 @@ SEXP exportSBML (SEXP version, SEXP level,SEXP FbcLevel, SEXP filename,SEXP sybi -/* -------------------------------------------------------------------------- */ +/* -------------------------------------------------------------------------- */ \ No newline at end of file -- GitLab