/*
- * Copyright (C) 2011 David Goulet <david.goulet@polymtl.ca>
+ * Copyright (C) 2011 EfficiOS Inc.
*
* SPDX-License-Identifier: GPL-2.0-only
*
char *session_name = NULL;
const char *leftover = NULL;
- struct lttng_session *sessions;
+ struct lttng_session *sessions = NULL;
int count;
int found;
free(session_name);
}
+ free(sessions);
+
/* Overwrite ret if an error occurred during destroy_session/all */
ret = command_ret ? command_ret : ret;