Merge pull request #417 from jubalh/doublefree
Only free sgent if it was initialized
This commit is contained in:
commit
5bb28a0a7f
@ -1207,12 +1207,14 @@ int main (int argc, char **argv)
|
|||||||
sssd_flush_cache (SSSD_DB_GROUP);
|
sssd_flush_cache (SSSD_DB_GROUP);
|
||||||
|
|
||||||
#ifdef SHADOWGRP
|
#ifdef SHADOWGRP
|
||||||
|
if (is_shadowgrp) {
|
||||||
if (sgent.sg_adm) {
|
if (sgent.sg_adm) {
|
||||||
xfree(sgent.sg_adm);
|
xfree(sgent.sg_adm);
|
||||||
}
|
}
|
||||||
if (sgent.sg_mem) {
|
if (sgent.sg_mem) {
|
||||||
xfree(sgent.sg_mem);
|
xfree(sgent.sg_mem);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
if (grent.gr_mem) {
|
if (grent.gr_mem) {
|
||||||
xfree(grent.gr_mem);
|
xfree(grent.gr_mem);
|
||||||
|
Loading…
Reference in New Issue
Block a user