projects
/
profile
/
ivi
/
wayland.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00902b3
)
scanner: Plug memory leak in end_element()
author
Martin Olsson
<martin@minimum.se>
Mon, 9 Jul 2012 09:35:55 +0000
(11:35 +0200)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 9 Jul 2012 21:59:23 +0000
(17:59 -0400)
src/scanner.c
patch
|
blob
|
history
diff --git
a/src/scanner.c
b/src/scanner.c
index
4d4537c
..
0076d92
100644
(file)
--- a/
src/scanner.c
+++ b/
src/scanner.c
@@
-462,7
+462,7
@@
end_element(void *data, const XML_Char *name)
char *text = strndup(ctx->character_data,
ctx->character_data_length);
if (text)
- ctx->description->text =
strdup(text)
;
+ ctx->description->text =
text
;
ctx->description = NULL;
} else if (strcmp(name, "request") == 0 ||
strcmp(name, "event") == 0) {