Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit b0c8913

Browse files
committed
[CID 16112] revZipCancel(): Resource leak.
1 parent 1c21c35 commit b0c8913

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

revzip/src/revzip.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,9 +1440,10 @@ void revZipCancel(char *p_arguments[], int p_argument_count, char **r_result, Bo
14401440
t_result = strdup("ziperr,illegal arguments");
14411441
t_error = True;
14421442
}
1443-
1444-
if (!s_operation_in_progress)
1443+
else if (!s_operation_in_progress)
1444+
{
14451445
t_result = strdup("ziperr,no current operation");
1446+
}
14461447

14471448
if (t_result == NULL)
14481449
s_operation_cancelled = true;

0 commit comments

Comments
 (0)