From 9009aa0f54c327ff115bb838f0876a3a43495e5e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 4 Sep 2020 16:05:41 +0200 Subject: Local BE: duplicate job title add_result() takes ownership of all of these --- src/gui_backend_local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gui_backend_local.c b/src/gui_backend_local.c index e63d8379..1bddc1be 100644 --- a/src/gui_backend_local.c +++ b/src/gui_backend_local.c @@ -259,7 +259,7 @@ static void *run_indexing(const char *job_title, streams = malloc(sizeof(char *)); if ( streams != NULL ) { streams[0] = strdup("crystfel.stream"); - add_result(proj, job_title, streams, 1); + add_result(proj, strdup(job_title), streams, 1); } return job; } -- cgit v1.2.3