Skip to content

Commit

Permalink
- remove useless GC_strdup as the buffer will be copied yet again in …
Browse files Browse the repository at this point in the history
…*mk_scon

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19780 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Mar 26, 2014
1 parent 284ec25 commit 3300e29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/runtime/Print_omc.c
Expand Up @@ -77,15 +77,15 @@ extern const char* Print_getString(threadData_t *threadData)
if (res == NULL)
MMC_THROW();
// fprintf(stderr, "Print_getString: %s##\n", res);fflush(NULL);
return GC_strdup(res);
return res;
}

extern const char* Print_getErrorString(threadData_t *threadData)
{
const char* res = PrintImpl__getErrorString(threadData);
if (res == NULL)
MMC_THROW();
return GC_strdup(res);
return res;
}

extern void Print_clearErrorBuf(threadData_t *threadData)
Expand Down

0 comments on commit 3300e29

Please sign in to comment.