artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72666ba
)
fix a memory leak in an error path
author
jsg
<jsg@openbsd.org>
Sat, 23 May 2015 14:26:06 +0000
(14:26 +0000)
committer
jsg
<jsg@openbsd.org>
Sat, 23 May 2015 14:26:06 +0000
(14:26 +0000)
usr.sbin/ldomctl/mdesc.c
patch
|
blob
|
history
diff --git
a/usr.sbin/ldomctl/mdesc.c
b/usr.sbin/ldomctl/mdesc.c
index
bba7d9c
..
babdd82
100644
(file)
--- a/
usr.sbin/ldomctl/mdesc.c
+++ b/
usr.sbin/ldomctl/mdesc.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: mdesc.c,v 1.
8 2015/02/09 04:27:25
jsg Exp $ */
+/* $OpenBSD: mdesc.c,v 1.
9 2015/05/23 14:26:06
jsg Exp $ */
/*
* Copyright (c) 2012 Mark Kettenis
@@
-622,6
+622,7
@@
md_read(const char *path)
buf = xmalloc(size);
if (fread(buf, size, 1, fp) != 1) {
fclose(fp);
+ free(buf);
return NULL;
}