configure: Normalize indentation to 2 spaces
[babeltrace.git] / src / py-common / py-common.c
index b1ca34ae455014f87e85116c33fd8b2ab97e4a15..feb4cffab1a4e0b8451d66763da10e608cca4946 100644 (file)
@@ -1,25 +1,9 @@
 /*
+ * SPDX-License-Identifier: MIT
+ *
  * Copyright (c) 2019 EfficiOS Inc. and Linux Foundation
  * Copyright (c) 2019 Philippe Proulx <pproulx@efficios.com>
  * Copyright (c) 2019 Simon Marchi <simon.marchi@efficios.com>
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * 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.
  */
 
 #define BT_LOG_OUTPUT_LEVEL log_level
@@ -141,15 +125,7 @@ GString *bt_py_common_format_tb(PyObject *py_exc_tb, int log_level)
                goto error;
        }
 
-       goto end;
-
 error:
-       if (msg_buf) {
-               g_string_free(msg_buf, TRUE);
-               msg_buf = NULL;
-       }
-
-end:
        Py_XDECREF(traceback_module);
        Py_XDECREF(format_tb_func);
        Py_XDECREF(exc_str_list);
@@ -222,15 +198,7 @@ GString *bt_py_common_format_exception(PyObject *py_exc_type,
                goto error;
        }
 
-       goto end;
-
 error:
-       if (msg_buf) {
-               g_string_free(msg_buf, TRUE);
-               msg_buf = NULL;
-       }
-
-end:
        Py_XDECREF(exc_str_list);
        Py_XDECREF(format_exception_func);
        Py_XDECREF(traceback_module);
This page took 0.027979 seconds and 4 git commands to generate.