Skip to content

Commit 50f9211

Browse files
committed
fix the issue of illegal memory access
1 parent fed78a3 commit 50f9211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/cli/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,11 +1269,11 @@ int main(int argc, const char* argv[]) {
12691269
}
12701270
}
12711271

1272-
free(results);
12731272
for (int i = 0; i < num_results; i++) {
12741273
free(results[i].data);
12751274
results[i].data = NULL;
12761275
}
1276+
free(results);
12771277
free_sd_ctx(sd_ctx);
12781278
free(control_image_buffer);
12791279
free(input_image_buffer);

0 commit comments

Comments
 (0)