aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtracelog/libtracelog.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtracelog/libtracelog.c')
-rw-r--r--src/libtracelog/libtracelog.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libtracelog/libtracelog.c b/src/libtracelog/libtracelog.c
index 3124dafa0..d89998f61 100644
--- a/src/libtracelog/libtracelog.c
+++ b/src/libtracelog/libtracelog.c
@@ -71,6 +71,7 @@ static void storage_add(const char *str) {
71 ptr->path = strdup(str); 71 ptr->path = strdup(str);
72 if (!ptr->path) { 72 if (!ptr->path) {
73 fprintf(stderr, "Error: cannot allocate memory\n"); 73 fprintf(stderr, "Error: cannot allocate memory\n");
74 free(ptr);
74 return; 75 return;
75 } 76 }
76 77