* libmisc/find_new_gid.c: free (used_gids) on return.
+2011-07-30 Nicolas François <nicolas.francois@centraliens.net>
+
+ * libmisc/find_new_uid.c: free (used_uids) on return.
+ * libmisc/find_new_gid.c: free (used_gids) on return.
+
2011-07-28 Nicolas François <nicolas.francois@centraliens.net>
* lib/commonio.c: Fix NIS commit from 2011-07-14.
* changes */
&& (gr_locate_gid (*preferred_gid) == NULL)) {
*gid = *preferred_gid;
+ free (used_gids);
return 0;
}
Prog);
SYSLOG ((LOG_WARN,
"no more available GID on the system"));
+ free (used_gids);
return -1;
}
}
_("%s: Can't get unique GID (no more available GIDs)\n"),
Prog);
SYSLOG ((LOG_WARN, "no more available GID on the system"));
+ free (used_gids);
return -1;
}
}
* changes */
&& (pw_locate_uid (*preferred_uid) == NULL)) {
*uid = *preferred_uid;
+ free (used_uids);
return 0;
}
Prog);
SYSLOG ((LOG_WARN,
"no more available UID on the system"));
+ free (used_uids);
return -1;
}
}
_("%s: Can't get unique UID (no more available UIDs)\n"),
Prog);
SYSLOG ((LOG_WARN, "no more available UID on the system"));
+ free (used_uids);
return -1;
}
}