r915: fixed a bug caused by the latest change

This commit is contained in:
Heng Li 2019-02-14 10:04:04 -05:00
parent 32ab6ce15b
commit e02bebd96d
2 changed files with 5 additions and 2 deletions

View File

@ -28,7 +28,10 @@ mm128_t *mm_chain_dp(int max_dist_x, int max_dist_y, int bw, int max_skip, int m
mm128_t *b, *w;
if (_u) *_u = 0, *n_u_ = 0;
if (n == 0 || a == 0) return 0;
if (n == 0 || a == 0) {
kfree(km, a);
return 0;
}
f = (int32_t*)kmalloc(km, n * 4);
p = (int32_t*)kmalloc(km, n * 4);
t = (int32_t*)kmalloc(km, n * 4);

2
main.c
View File

@ -6,7 +6,7 @@
#include "mmpriv.h"
#include "ketopt.h"
#define MM_VERSION "2.15-r914-dirty"
#define MM_VERSION "2.15-r915-dirty"
#ifdef __linux__
#include <sys/resource.h>