[ekg2-commit] ekg2: commands.c (HEAD) [darkjames]
CVS commit
cvs w toxygen.net
Pią, 2 Lis 2007, 01:12:09 CET
Module name: ekg2
Changes by: darkjames 2007-11-02 01:12:07
Modified files:
commands.c
Log message:
fix memleak.
Index: commands.c
===================================================================
RCS file: /home/cvs/ekg2/plugins/jabber/commands.c,v
diff -d -u -r1.208 -r1.209
--- commands.c 21 Oct 2007 14:21:20 -0000 1.208
+++ commands.c 2 Nov 2007 00:12:07 -0000 1.209
@@ -1113,7 +1113,9 @@
string_append(str, p);
xfree(enc);
- out = saprintf("<PHOTO><TYPE>%s</TYPE><BINVAL>\n%s\n</BINVAL></PHOTO>", type, string_free(str, 0));
+ out = saprintf("<PHOTO><TYPE>%s</TYPE><BINVAL>\n%s\n</BINVAL></PHOTO>", type, str->str);
+ string_free(str, 1);
+
return out;
}
Więcej informacji o liście dyskusyjnej ekg2-commit