소스 검색

fix valgrind warning

Samuel Thibault 9 년 전
부모
커밋
7d31b28e62
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/datawizard/malloc.c

+ 1 - 1
src/datawizard/malloc.c

@@ -255,7 +255,7 @@ int starpu_malloc_flags(void **A, size_t dim, int flags)
 				}
 				unlink(name);
 				free(name);
-				dumb = malloc(_starpu_malloc_simulation_fold);
+				dumb = calloc(1,_starpu_malloc_simulation_fold);
 				write(bogusfile, dumb, _starpu_malloc_simulation_fold);
 				free(dumb);
 			}