mirror of
				https://github.com/SuperBFG7/ympd
				synced 2025-10-31 05:43:01 +00:00 
			
		
		
		
	fixed memleak in mpd_set_password
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Andrew Karpow
					Andrew Karpow