Stuffed a memory leak discovered by valgrind.
This commit is contained in:
parent
25068a4de2
commit
bb28c69cae
@ -295,9 +295,9 @@ ex:;
|
|||||||
aaip_get_acl_text("", &a_acl_text, 1 << 15); /* free */
|
aaip_get_acl_text("", &a_acl_text, 1 << 15); /* free */
|
||||||
if(d_acl_text != NULL)
|
if(d_acl_text != NULL)
|
||||||
aaip_get_acl_text("", &d_acl_text, 1 << 15); /* free */
|
aaip_get_acl_text("", &d_acl_text, 1 << 15); /* free */
|
||||||
if(ret <= 0 || (flag & (1 << 15))) {
|
|
||||||
if(list != NULL)
|
if(list != NULL)
|
||||||
free(list);
|
free(list);
|
||||||
|
if(ret <= 0 || (flag & (1 << 15))) {
|
||||||
if(*names != NULL) {
|
if(*names != NULL) {
|
||||||
for(i= 0; i < *num_attrs; i++)
|
for(i= 0; i < *num_attrs; i++)
|
||||||
free((*names)[i]);
|
free((*names)[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user