s3-utils: Fixed possible resource leak in net_usershare.
_("net usershare add: cannot lstat tmp file %s\n"),
full_path_tmp );
TALLOC_FREE(ctx);
+ close(tmpfd);
return -1;
}
_("net usershare add: cannot fstat tmp file %s\n"),
full_path_tmp );
TALLOC_FREE(ctx);
+ close(tmpfd);
return -1;
}
"file ?\n"),
full_path_tmp );
TALLOC_FREE(ctx);
+ close(tmpfd);
return -1;
}
"to 0644n"),
full_path_tmp );
TALLOC_FREE(ctx);
+ close(tmpfd);
return -1;
}
(unsigned int)to_write, full_path_tmp, strerror(errno));
unlink(full_path_tmp);
TALLOC_FREE(ctx);
+ close(tmpfd);
return -1;
}