139 snprintf(buf, 64, "%+03d:%02d", (int) tm->tm_gmtoff/(60*60), (int) tm->tm_gmtoff%(60*60)); |
139 snprintf(buf, 64, "%+03d:%02d", (int) tm->tm_gmtoff/(60*60), (int) tm->tm_gmtoff%(60*60)); |
140 #endif |
140 #endif |
141 Index: sm/mod_roster.c |
141 Index: sm/mod_roster.c |
142 --- sm/mod_roster.c.orig 2009-06-30 11:38:15 +0200 |
142 --- sm/mod_roster.c.orig 2009-06-30 11:38:15 +0200 |
143 +++ sm/mod_roster.c 2009-06-30 20:45:06 +0200 |
143 +++ sm/mod_roster.c 2009-06-30 20:45:06 +0200 |
144 @@ -635,6 +635,9 @@ |
144 @@ -708,6 +708,9 @@ |
145 if(user->sessions == NULL) |
145 if(user->sessions == NULL) |
146 return mod_PASS; |
146 return mod_PASS; |
147 |
147 |
148 + /* We have to free old packet - Lemming's memory leak fix */ |
148 + /* We have to free old packet - Lemming's memory leak fix */ |
149 + pkt_free(pkt); |
149 + pkt_free(pkt); |