projects
/
ympd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ba3e0b
)
fixed memleak in mpd_set_password
author
Andrew Karpow
<andy@ndyk.de>
Fri, 24 Apr 2015 22:39:16 +0000
(
00:39
+0200)
committer
Andrew Karpow
<andy@ndyk.de>
Fri, 24 Apr 2015 22:39:16 +0000
(
00:39
+0200)
src/mpd_client.c
patch
|
blob
|
history
diff --git
a/src/mpd_client.c
b/src/mpd_client.c
index
640b837
..
ee49c84
100644
(file)
--- a/
src/mpd_client.c
+++ b/
src/mpd_client.c
@@
-219,8
+219,9
@@
out_host_change:
if(mpd.password)
free(mpd.password);
- mpd.password =
token
;
+ mpd.password =
strdup(token)
;
mpd.conn_state = MPD_RECONNECT;
+ free(p_charbuf);
return MG_TRUE;
out_set_pass:
free(p_charbuf);