Summary: The flags `--biabduction-fallback-model-alloc-pattern` and `--biabduction-fallback-model-free-pattern` were unused because we removed the models from .inferconfig a while ago because of too many false positives. We are implementing a better memory leak check based on Pulse, and are adding the similar flags `--pulse-model-alloc-pattern` and `--pulse-model-free-pattern`. Reviewed By: jvillard Differential Revision: D21061511 fbshipit-source-id: 1b3476c22master
parent
2d168f75a6
commit
bdba1db6ef
@ -1,33 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
||||||
*
|
|
||||||
* This source code is licensed under the MIT license found in the
|
|
||||||
* LICENSE file in the root directory of this source tree.
|
|
||||||
*/
|
|
||||||
#include <Foundation/NSObject.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
typedef struct ABFDataRef {
|
|
||||||
} ABFDataRef;
|
|
||||||
|
|
||||||
// if impl is there --biabduction-fallback-model-alloc-pattern wont catch it
|
|
||||||
ABFDataRef* ABFDataCreate(size_t size);
|
|
||||||
void ABRelease(ABFDataRef*);
|
|
||||||
|
|
||||||
@interface A : NSObject
|
|
||||||
@end
|
|
||||||
|
|
||||||
@implementation A
|
|
||||||
|
|
||||||
- (void)someMethod_bad {
|
|
||||||
ABFDataRef* someData = ABFDataCreate(4);
|
|
||||||
// this allocates a new ABFData structure
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)someMethod_ok {
|
|
||||||
ABFDataRef* someData = ABFDataCreate(4);
|
|
||||||
// this allocates a new ABFData structure
|
|
||||||
ABFRelease(someData);
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
|
Loading…
Reference in new issue