X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=types%2Fsequence.c;h=0e84b1d18ceb092fe28af8c45ce1eb8a9fcba23c;hp=bd49d2a6507f116a5f916a423785761e06fd1cb5;hb=c462e188f3e7819c7bc74f671038cdbf36e8c3c0;hpb=3122e6f075647374e7a98ae9501d100de8d004a9 diff --git a/types/sequence.c b/types/sequence.c index bd49d2a6..0e84b1d1 100644 --- a/types/sequence.c +++ b/types/sequence.c @@ -16,6 +16,14 @@ * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. */ #include @@ -206,8 +214,8 @@ void _sequence_definition_free(struct definition *definition) field = g_ptr_array_index(sequence->elems, i); field->declaration->definition_free(field); } + (void) g_ptr_array_free(sequence->elems, TRUE); } - (void) g_ptr_array_free(sequence->elems, TRUE); definition_unref(len_definition); free_definition_scope(sequence->p.scope); declaration_unref(sequence->p.declaration);