Commit e853a32d by S.Çağlar Onur Committed by Serge Hallyn

free getline allocated line variable to make valgrind happy

parent 527dacf6
...@@ -3129,6 +3129,9 @@ int list_active_containers(const char *lxcpath, char ***names, struct lxc_contai ...@@ -3129,6 +3129,9 @@ int list_active_containers(const char *lxcpath, char ***names, struct lxc_contai
if (names) if (names)
*names = unique_names; *names = unique_names;
if (line)
free(line);
process_lock(); process_lock();
fclose(f); fclose(f);
process_unlock(); process_unlock();
...@@ -3145,6 +3148,9 @@ free_bad: ...@@ -3145,6 +3148,9 @@ free_bad:
lxc_container_put((*cret)[i]); lxc_container_put((*cret)[i]);
free(*cret); free(*cret);
} }
if (line)
free(line);
process_lock(); process_lock();
fclose(f); fclose(f);
process_unlock(); process_unlock();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment