.\" .\" libdivecomputer .\" .\" Copyright (C) 2017 Kristaps Dzonsons .\" .\" This library is free software; you can redistribute it and/or .\" modify it under the terms of the GNU Lesser General Public .\" License as published by the Free Software Foundation; either .\" version 2.1 of the License, or (at your option) any later version. .\" .\" This library is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU .\" Lesser General Public License for more details. .\" .\" You should have received a copy of the GNU Lesser General Public .\" License along with this library; if not, write to the Free Software .\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, .\" MA 02110-1301 USA .\" .Dd January 5, 2017 .Dt DC_DESCRIPTOR_FREE 3 .Os .Sh NAME .Nm dc_descriptor_free .Nd free a dive computer descriptor reference .Sh LIBRARY .Lb libdivecomputer .Sh SYNOPSIS .In libdivecomputer/descriptor.h .Ft void .Fo dc_descriptor_free .Fa "dc_descriptor_t *descriptor" .Fc .Sh DESCRIPTION Frees a descriptor usually returned with .Xr dc_iterator_next 3 as created with .Xr dc_descriptor_iterator 3 . It's safe to pass .Dv NULL to this function. .Sh SEE ALSO .Xr dc_descriptor_iterator 3 , .Xr dc_iterator_free 3 .Sh AUTHORS The .Lb libdivecomputer library was written by .An Jef Driesen , .Mt jef@libdivecomputer.org . The manpages were written by .An Kristaps Dzonsons , .Mt kristaps@bsd.lv .