aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2015-05-17 17:23:18 -0400
committerFranklin Wei <git@fwei.tk>2015-05-17 17:23:18 -0400
commit8e9a52ceae1f2e0fac76d06ff5e6a2170dcdd1bb (patch)
tree11868a8886f35f802c14f091d28b69c4d9abedc4 /src/util.c
parentc13b48095f91b6c277854b9970c59c82943af74f (diff)
downloadmarket-sim-8e9a52ceae1f2e0fac76d06ff5e6a2170dcdd1bb.zip
market-sim-8e9a52ceae1f2e0fac76d06ff5e6a2170dcdd1bb.tar.gz
market-sim-8e9a52ceae1f2e0fac76d06ff5e6a2170dcdd1bb.tar.bz2
market-sim-8e9a52ceae1f2e0fac76d06ff5e6a2170dcdd1bb.tar.xz
fix some memory leaks
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index 8f82976..0740a09 100644
--- a/src/util.c
+++ b/src/util.c
@@ -263,5 +263,7 @@ ullong read_int(void)
ullong ret = -1;
sscanf(str, "%llu", &ret);
+ free(str);
+
return ret;
}