From d3d67064a1ab6a2ee8faa5d3673c2ada4ba8cd18 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 27 Aug 2024 16:19:57 +0530 Subject: jobs/drv_to_pname: always clean up regex --- src/jobs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/jobs.c b/src/jobs.c index 5c5be38..458635b 100644 --- a/src/jobs.c +++ b/src/jobs.c @@ -91,7 +91,7 @@ static int drv_to_pname(char *drv_path, char **pname) if (ret_pname == NULL) { print_err("%s", strerror(errno)); ret = -errno; - goto out_close_drv_file; + goto out_free_regex; } *pname = ret_pname; -- cgit v1.2.3