Changeset 300c857 in OpenModelica


Ignore:
Timestamp:
2021-04-06T13:11:48+02:00 (3 years ago)
Author:
Lennart Ochel <lennart.ochel@…>
Children:
e6050add
Parents:
8549930b
Message:

Don't free this memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMEdit/OMEditLIB/OMS/OMSProxy.cpp

    rbcd47c5a r300c857  
    10661066  char* new_cref = NULL;
    10671067  oms_status_enu_t status = oms_importSnapshot(cref_.toUtf8().constData(), snapshot.toUtf8().constData(), &new_cref);
    1068   if (new_cref) {
     1068  if (new_cref)
    10691069    *pNewCref = QString(new_cref);
    1070     free(new_cref);
    1071   }
    10721070  else
    10731071    *pNewCref = cref;
Note: See TracChangeset for help on using the changeset viewer.