static int opt_log4j;
static char *opt_type;
+#ifdef LTTNG_EMBED_HELP
+static const char help_msg[] =
+#include <lttng-add-context.1.h>
+;
+#endif
+
enum {
OPT_HELP = 1,
OPT_TYPE,
if (!type) {
return;
}
- free(type->opt->symbol);
+ if (type->opt) {
+ free(type->opt->symbol);
+ }
free(type->opt);
free(type);
}