Skip to content

Commit 10038ec

Browse files
authored
Fix memory leak and specify library language (#3)
* Fix: Add call to `gate_delete` for `g4` in `example.c` to prevent a memory leak * Docs: Specify that this is a C lib
1 parent 20b660a commit 10038ec

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Overview
44

5-
A fast and space-efficient library for handling combinational Boolean circuits composed of the following types of gates:
5+
A fast and space-efficient C library for handling combinational Boolean circuits composed of the following types of gates:
66
- NAND, AND, OR, NOR, XOR, XNOR
77

88

example.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ static int example(void) {
3636
gate_delete(g0);
3737
gate_delete(g1);
3838
gate_delete(g2);
39+
gate_delete(g4);
3940

4041
return 0;
4142
}

0 commit comments

Comments
 (0)