Fix memory leak

master
Kamil Rytarowski 2013-05-11 14:54:38 +02:00 committed by Harald Hoyer
parent d9eff33ce2
commit e0904b27ff
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ static int resolve_deps(const char *src)
{
int ret = 0;

char *buf = malloc(LINE_MAX);
_cleanup_free_ char *buf = malloc(LINE_MAX);
size_t linesize = LINE_MAX;
_cleanup_pclose_ FILE *fptr = NULL;
_cleanup_free_ char *cmd = NULL;