svn commit: trunk/uClibc/libc/pwd_grp
vda at uclibc.org
vda at uclibc.org
Wed Aug 1 10:19:55 UTC 2007
Author: vda
Date: 2007-08-01 03:19:51 -0700 (Wed, 01 Aug 2007)
New Revision: 19386
Log:
sgetspent: add missing free/__uc_malloc calls
(spotted by Peter S. Mazinger <ps.m at gmx.net>)
Modified:
trunk/uClibc/libc/pwd_grp/pwd_grp.c
Changeset:
Modified: trunk/uClibc/libc/pwd_grp/pwd_grp.c
===================================================================
--- trunk/uClibc/libc/pwd_grp/pwd_grp.c 2007-08-01 09:53:01 UTC (rev 19385)
+++ trunk/uClibc/libc/pwd_grp/pwd_grp.c 2007-08-01 10:19:51 UTC (rev 19386)
@@ -729,6 +729,8 @@
} *sp;
struct spwd *result;
+ free(sp);
+ sp = __uc_malloc(sizeof(*sp));
sgetspent_r(string, &sp->spwd, sp->line_buff, sizeof(sp->line_buff), &result);
return result;
}
More information about the uClibc-cvs
mailing list