Bug #5410 ยป bugfix.diff
src/descrambler/descrambler.c 2018-12-09 21:35:53.211691464 +0100 | ||
---|---|---|
1282 | 1282 |
} |
1283 | 1283 |
if (des->last_data == NULL || len != des->last_data_len || |
1284 | 1284 |
memcmp(des->last_data, ptr, len)) { |
1285 |
free(des->last_data); |
|
1285 |
if (des->last_data) |
|
1286 |
free(des->last_data); |
|
1286 | 1287 |
des->last_data = malloc(len); |
1287 | 1288 |
if (des->last_data) { |
1288 | 1289 |
memcpy(des->last_data, ptr, len); |