Skip to content

Commit bc327b2

Browse files
authored
clib-uninstall: fix possible memory leak (#324)
1 parent 1d505c8 commit bc327b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/clib-uninstall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static char *get_uninstall_target(const char *name, const char *version) {
128128

129129
size = asprintf(&target, "cd %s && %s", dir, val);
130130
if (-1 == size)
131-
return NULL;
131+
target = NULL;
132132

133133
done:
134134
if (root)

0 commit comments

Comments
 (0)