mirror of https://github.com/redis/redis.git
				
				
				
			Merge pull request #6638 from oranagra/fix_module_short_read_test
fix crash in module short read test
This commit is contained in:
		
						commit
						89849c8b01
					
				| 
						 | 
				
			
			@ -20,6 +20,7 @@ void *testrdb_type_load(RedisModuleIO *rdb, int encver) {
 | 
			
		|||
    long double ld = RedisModule_LoadLongDouble(rdb);
 | 
			
		||||
    if (RedisModule_IsIOError(rdb)) {
 | 
			
		||||
        RedisModuleCtx *ctx = RedisModule_GetContextFromIO(rdb);
 | 
			
		||||
        if (str)
 | 
			
		||||
            RedisModule_FreeString(ctx, str);
 | 
			
		||||
        return NULL;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue