git://project.juiblex.co.uk
/
razor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
9837059
)
Fix memory leak
author
J. Ali Harlow
<ali@juiblex.co.uk>
Tue, 11 Nov 2014 15:57:14 +0000 (15:57 +0000)
committer
J. Ali Harlow
<ali@juiblex.co.uk>
Tue, 11 Nov 2014 15:57:14 +0000 (15:57 +0000)
librazor/atomic-emulate.c
patch
|
blob
|
history
diff --git
a/librazor/atomic-emulate.c
b/librazor/atomic-emulate.c
index
40f2653
..
890faa7
100644
(file)
--- a/
librazor/atomic-emulate.c
+++ b/
librazor/atomic-emulate.c
@@
-156,6
+156,7
@@
static char *absolute_path(const char *path)
result = malloc(len + strlen(s) + 1);
memcpy(result, subpath, len);
strcpy(result + len, s);
+ free(subpath);
break;
} else if (errno != ENOENT)
break;