# HG changeset patch # User reimar # Date 1195400900 0 # Node ID 60b34bf9a41e96173e90dced7c279819fc249d0d # Parent d2f7027f05566f2198ae92ac74dc84bd1277f883 100l, someone mixed up && and ||, so if allocation of only one buffers failed that would not be detected. diff -r d2f7027f0556 -r 60b34bf9a41e libaf/af_scaletempo.c --- a/libaf/af_scaletempo.c Sun Nov 18 14:57:59 2007 +0000 +++ b/libaf/af_scaletempo.c Sun Nov 18 15:48:20 2007 +0000 @@ -367,7 +367,7 @@ int32_t* pw; s->buf_pre_corr = realloc(s->buf_pre_corr, s->bytes_overlap * 2); s->table_window = realloc(s->table_window, s->bytes_overlap * 2 - nch * bps * 2); - if(!s->buf_pre_corr && !s->table_window) { + if(!s->buf_pre_corr || !s->table_window) { af_msg(AF_MSG_FATAL, "[scaletempo] Out of memory\n"); return AF_ERROR; }