Sample code for c in memory-leak-in-c is wrong
- 主要语言
- OCaml
- 星标
- 15.7k
- 派生
- 2.1k
- 平均合并
- 19 小时 36 分钟
- 30 天内合并 PR
- 13
描述
It is just document typo in https://fbinfer.com/docs/all-issue-types#memory-leak-in-c
Bellow code is not legal c-syntax.
```c
-(void) memory_leak_bug {
struct Person *p = malloc(sizeof(struct Person));
}
```
I think it should be:
```c
void memory_leak_bug () {
struct Person *p = malloc(sizeof(struct Person));
}
```
Please include the following information:
- [-] The version of infer from `infer --version`.
- [-] Your operating system and version, for example "Debian 9", "MacOS High Sierra", whether you are using Docker, etc.
- [-] Which command you ran, for example `infer -- make`.
- [-] The full output in a paste, for instance a [gist](https://gist.github.com/).
- [-] If possible, a minimal example to reproduce your problem (for instance, some code where
infer reports incorrectly, together with the way you run infer to reproduce the incorrect
report).
贡献指南
评估
这个 Issue 还没有评估数据。