Line data Source code
1 : /*! 2 : * \file esys/repo/libgit2/guardsrelease_libgit2.cpp 3 : * \brief 4 : * 5 : * \cond 6 : * __legal_b__ 7 : * 8 : * Copyright (c) 2021 Michel Gillet 9 : * Distributed under the MIT License. 10 : * (See accompanying file LICENSE.txt or 11 : * copy at https://opensource.org/licenses/MIT) 12 : * 13 : * __legal_e__ 14 : * \endcond 15 : * 16 : */ 17 : 18 : #include "esys/repo/esysrepo_prec.h" 19 : #include "esys/repo/libgit2/guardsrelease.h" 20 : 21 : namespace esys::repo::libgit2 22 : { 23 : 24 : template<> 25 64 : ESYSREPO_API void guards_release<git_strarray>(git_strarray *data) 26 : { 27 64 : if (data == nullptr) return; 28 64 : git_strarray_dispose(data); 29 : } 30 : 31 : } // namespace esys::repo::libgit2