Skip to content

Commit

Permalink
- use the alloc interface not malloc directly
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24671 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Feb 20, 2015
1 parent 18a23d0 commit 0b1d872
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SimulationRuntime/c/util/base_array.c
Expand Up @@ -311,8 +311,8 @@ size_t calc_base_index_dims_subs(int ndims,...)
int i;
size_t index;

_index_t *dims = (_index_t*)malloc(sizeof(_index_t)*ndims);
_index_t *subs = (_index_t*)malloc(sizeof(_index_t)*ndims);
_index_t *dims = (_index_t*)omc_alloc_interface.malloc(sizeof(_index_t)*ndims);
_index_t *subs = (_index_t*)omc_alloc_interface.malloc(sizeof(_index_t)*ndims);

va_list ap;
va_start(ap,ndims);
Expand Down

0 comments on commit 0b1d872

Please sign in to comment.