X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Fevent.c;h=f1792f9317a8eb8cf67cfe1dcce84c423b8fa646;hb=48a4000561343808724f7cb5fa8c131877489ccd;hp=329a8688db8672eb81e9feed541954a356cd1523;hpb=76fcf15156ecb0a18f9c41b350342171f862ff47;p=lttng-tools.git diff --git a/src/common/event.c b/src/common/event.c index 329a8688d..f1792f931 100644 --- a/src/common/event.c +++ b/src/common/event.c @@ -1,24 +1,13 @@ /* - * Copyright (C) 2018 - Jérémie Galarneau + * Copyright (C) 2018 Jérémie Galarneau * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License, version 2.1 only, - * as published by the Free Software Foundation. + * SPDX-License-Identifier: LGPL-2.1-only * - * 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 */ #include #include -LTTNG_HIDDEN struct lttng_event *lttng_event_copy(const struct lttng_event *event) { struct lttng_event *new_event; @@ -48,5 +37,6 @@ end: return new_event; error: free(new_event); + new_event = NULL; goto end; }