Skip to content

Commit

Permalink
Use replace here to avoid mem leak. ref: #490
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Oct 6, 2017
1 parent 2554f82 commit e4c6ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/outputs/icecast2.ml
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ object (self)
List.iter (fun (x,y) ->
(* User-Agent has already been passed to Cry.. *)
if x <> "User-Agent" then
Hashtbl.add source.Cry.headers x y) headers;
Hashtbl.replace source.Cry.headers x y) headers;

try
Cry.connect connection source ;
Expand Down

0 comments on commit e4c6ffc

Please sign in to comment.