chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More memory hygeine
[disorder]
/
lib
/
client-common.c
diff --git
a/lib/client-common.c
b/lib/client-common.c
index c55da8939fb6084e9f52e98910ef65ef5b6bfeb6..d5c61ce62f6f08ee650fc4802843a81a8c38f00b 100644
(file)
--- a/
lib/client-common.c
+++ b/
lib/client-common.c
@@
-1,6
+1,6
@@
/*
* This file is part of DisOrder
/*
* This file is part of DisOrder
- * Copyright (C) 2004, 2005, 2006, 2007 Richard Kettlewell
+ * Copyright (C) 2004, 2005, 2006, 2007
, 2009
Richard Kettlewell
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-63,6
+63,7
@@
socklen_t find_server(struct config *c,
strcpy(su.sun_path, name);
sa = (struct sockaddr *)&su;
len = sizeof su;
strcpy(su.sun_path, name);
sa = (struct sockaddr *)&su;
len = sizeof su;
+ xfree(name);
}
*sap = xmalloc_noptr(len);
memcpy(*sap, sa, len);
}
*sap = xmalloc_noptr(len);
memcpy(*sap, sa, len);